annotate src/testdir/test25.in @ 40:01573c245f15

fix for remote editor
author one@zeus.cr.ie.u-ryukyu.ac.jp
date Sat, 18 Dec 2010 18:47:04 +0900
parents 76efa0be13f1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 Test for jumping to a tag with 'hidden' set, with symbolic link in path of tag.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 This only works for Unix, because of the symbolic link.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
4 STARTTEST
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5 :so small.vim
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6 :set hidden
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 :" Create a link from test25.dir to the current directory.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8 :!rm -f test25.dir
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
9 :!ln -s . test25.dir
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
10 :" Create tags.text, with the current directory name inserted.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 /tags line
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 :r !pwd
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 d$/test
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 hP:.w! tags.test
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 :" Try jumping to a tag in the current file, but with a path that contains a
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 :" symbolic link. When wrong, this will give the ATTENTION message. The next
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 :" space will then be eaten by hit-return, instead of moving the cursor to 'd'.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 :set tags=tags.test
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19 G x:.w! test.out
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20 :!rm -f test25.dir tags.test
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 :qa!
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
22 ENDTEST
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
23
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
24 tags line:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
25 SECTION_OFF /test25.dir/test25.in /^#define SECTION_OFF 3$/
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 /*tx.c*/
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28 #define SECTION_OFF 3
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29 #define NUM_SECTIONS 3
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31 SECTION_OFF