7
|
1 Tests for "vaBiB", end could be wrong.
|
|
2 Also test ":s/pat/sub/" with different ~s in sub.
|
|
3 Also test for ^Vxff and ^Vo123 in Insert mode.
|
|
4 Also test "[m", "]m", "[M" and "]M"
|
4240
|
5 Also test search()
|
7
|
6
|
|
7 STARTTEST
|
|
8 :so small.vim
|
|
9 /Start cursor here
|
|
10 vaBiBD:?Bug?,/Piece/-2w! test.out
|
|
11 /^- Bug
|
|
12 :s/u/~u~/
|
|
13 :s/i/~u~/
|
|
14 :s/o/~~~/
|
|
15 :.w >>test.out
|
|
16 :if has("ebcdic")
|
|
17 : let tt = "o\<C-V>193\<C-V>xc2\<C-V>o303 \<C-V>90a\<C-V>xfg\<C-V>o578\<Esc>"
|
|
18 :else
|
|
19 : let tt = "o\<C-V>65\<C-V>x42\<C-V>o103 \<C-V>33a\<C-V>xfg\<C-V>o78\<Esc>"
|
|
20 :endif
|
|
21 :exe "normal " . tt
|
1405
|
22 :unlet tt
|
7
|
23 :.w >>test.out
|
|
24 :set vb
|
|
25 /^Piece
|
|
26 2]maA:.w >>test.out
|
|
27 j]maB:.w >>test.out
|
|
28 ]maC:.w >>test.out
|
|
29 [maD:.w >>test.out
|
|
30 k2[maE:.w >>test.out
|
|
31 3[maF:.w >>test.out
|
|
32 ]MaG:.w >>test.out
|
|
33 j2]MaH:.w >>test.out
|
|
34 ]M]MaI:.w >>test.out
|
|
35 2[MaJ:.w >>test.out
|
|
36 k[MaK:.w >>test.out
|
|
37 3[MaL:.w >>test.out
|
4240
|
38 :"
|
|
39 /^foobar
|
|
40 :let startline = line('.')
|
|
41 :call search('foobar', 'c')
|
|
42 :call append(line('$'), line('.') - startline)
|
|
43 j:call search('^$', 'c')
|
|
44 :call append(line('$'), line('.') - startline)
|
|
45 :call search('^$', 'bc')
|
|
46 :call append(line('$'), line('.') - startline)
|
4252
|
47 /two
|
|
48 :call search('.', 'c')
|
|
49 :call append(line('$'), getline('.')[col('.') - 1:])
|
4240
|
50 :/^search()/,$w >>test.out
|
7
|
51 :qa!
|
|
52 ENDTEST
|
|
53
|
|
54 - Bug in "vPPPP" on this text (Webb):
|
|
55 {
|
|
56 cmd;
|
|
57 {
|
|
58 cmd; /* <-- Start cursor here */
|
|
59 {
|
|
60 }
|
|
61 }
|
|
62 }
|
|
63
|
|
64 Piece of Java
|
|
65 {
|
|
66 tt m1 {
|
|
67 t1;
|
|
68 } e1
|
|
69
|
|
70 tt m2 {
|
|
71 t2;
|
|
72 } e2
|
|
73
|
|
74 tt m3 {
|
|
75 if (x)
|
|
76 {
|
|
77 t3;
|
|
78 }
|
|
79 } e3
|
|
80 }
|
4240
|
81
|
|
82 foobar
|
|
83
|
|
84
|
4252
|
85 one two
|
4240
|
86 search()
|