1
2This is a test if a URL is recognized by "gf", with the cursor before and
3after the "://".  Also test ":\\".
4
5STARTTEST
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>"))
245GdG:wq! test.out
25ENDTEST
26first test for URL://machine.name/tmp/vimtest2a and other text
27second test for URL://machine.name/tmp/vimtest2b. And other text
28third test for URL:\\machine.name\vimtest2c and other text
29fourth test for URL:\\machine.name\tmp\vimtest2d, and other text
30