7
|
1
|
|
2 This is a test if a URL is recognized by "gf", with the cursor before and
|
|
3 after the "://". Also test ":\\".
|
|
4
|
|
5 STARTTEST
|
|
6 :so small.vim
|
|
7 /^first
|
|
8 /tmp
|
|
9 :call append(0, expand("<cfile>"))
|
|
10 /^second
|
|
11 /URL
|
|
12 :call append(1, expand("<cfile>"))
|
|
13 :if has("ebcdic")
|
|
14 : set isf=@,240-249,/,.,-,_,+,,,$,:,~,\
|
|
15 :else
|
|
16 : set isf=@,48-57,/,.,-,_,+,,,$,:,~,\
|
|
17 :endif
|
|
18 /^third
|
|
19 /name
|
|
20 :call append(2, expand("<cfile>"))
|
|
21 /^fourth
|
|
22 /URL
|
|
23 :call append(3, expand("<cfile>"))
|
|
24 5GdG:wq! test.out
|
|
25 ENDTEST
|
|
26 first test for URL://machine.name/tmp/vimtest2a and other text
|
|
27 second test for URL://machine.name/tmp/vimtest2b. And other text
|
|
28 third test for URL:\\machine.name\vimtest2c and other text
|
|
29 fourth test for URL:\\machine.name\tmp\vimtest2d, and other text
|