annotate src/testdir/test12.in @ 3543:9755d151c749 v7.3.532

updated for version 7.3.532 Problem: Compiler warning from Clang. Solution: Use a different way to point inside a string. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Fri, 01 Jun 2012 13:18:53 +0200
parents 3fc0f57ecb91
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 Tests for 'directory' option.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 - ".", in same dir as file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 - "./dir", in directory relative to file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 - "dir", in directory relative to current dir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :set nocompatible viminfo+=nviminfo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :set dir=.,~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :/start of testfile/,/end of testfile/w! Xtest1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 :" do an ls of the current dir to find the swap file (should not be there)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 :if has("unix")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 : !ls .X*.swp >test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 : r !ls X*.swp >test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :!echo first line >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :e Xtest1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :if has("unix")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :" Do an ls of the current dir to find the swap file, remove the leading dot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :" to make the result the same for all systems.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 : r!ls .X*.swp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 : s/\.*X/X/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 : .w >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 : undo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 :else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 : !ls X*.swp >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 :endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 :!echo under Xtest1.swp >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 :!mkdir Xtest2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 :set dir=./Xtest2,.,~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 :e Xtest1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 :!ls X*.swp >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 :!echo under under >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 :!ls Xtest2 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 :!echo under Xtest1.swp >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 :!mkdir Xtest.je
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 :/start of testfile/,/end of testfile/w! Xtest2/Xtest3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 :set dir=Xtest.je,~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 :e Xtest2/Xtest3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 :swap
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 :!ls Xtest2 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 :!echo under Xtest3 >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 :!ls Xtest.je >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 :!echo under Xtest3.swp >>test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 start of testfile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 line 2 Abcdefghij
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 line 3 Abcdefghij
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 end of testfile