7
|
1 Test for jumping to a tag with 'hidden' set, with symbolic link in path of tag.
|
|
2 This only works for Unix, because of the symbolic link.
|
|
3
|
|
4 STARTTEST
|
|
5 :so small.vim
|
|
6 :set hidden
|
|
7 :" Create a link from test25.dir to the current directory.
|
|
8 :!rm -f test25.dir
|
|
9 :!ln -s . test25.dir
|
|
10 :" Create tags.text, with the current directory name inserted.
|
|
11 /tags line
|
|
12 :r !pwd
|
|
13 d$/test
|
|
14 hP:.w! tags.test
|
|
15 :" Try jumping to a tag in the current file, but with a path that contains a
|
|
16 :" symbolic link. When wrong, this will give the ATTENTION message. The next
|
|
17 :" space will then be eaten by hit-return, instead of moving the cursor to 'd'.
|
|
18 :set tags=tags.test
|
|
19 G x:.w! test.out
|
|
20 :!rm -f test25.dir tags.test
|
|
21 :qa!
|
|
22 ENDTEST
|
|
23
|
|
24 tags line:
|
|
25 SECTION_OFF /test25.dir/test25.in /^#define SECTION_OFF 3$/
|
|
26
|
|
27 /*tx.c*/
|
|
28 #define SECTION_OFF 3
|
|
29 #define NUM_SECTIONS 3
|
|
30
|
|
31 SECTION_OFF
|