1 Tests for 'directory' option.
2 - ".", in same dir as file
3 - "./dir", in directory relative to file
4 - "dir", in directory relative to current dir
8 :set nocompatible viminfo+=nviminfo
10 :/start of testfile/,/end of testfile/w! Xtest1
11 :" do an ls of the current dir to find the swap file (should not be there)
13 : !ls .X*.swp >test.out
15 : r !ls X*.swp >test.out
17 :!echo first line >>test.out
20 :" Do an ls of the current dir to find the swap file, remove the leading dot
21 :" to make the result the same for all systems.
27 : !ls X*.swp >>test.out
29 :!echo under Xtest1.swp >>test.out
33 :!ls X*.swp >>test.out
34 :!echo under under >>test.out
35 :!ls Xtest2 >>test.out
36 :!echo under Xtest1.swp >>test.out
38 :/start of testfile/,/end of testfile/w! Xtest2/Xtest3
42 :!ls Xtest2 >>test.out
43 :!echo under Xtest3 >>test.out
44 :!ls Xtest.je >>test.out
45 :!echo under Xtest3.swp >>test.out