7
|
1
|
|
2 Test Visual block mode commands
|
1528
|
3 And test "U" in Visual mode, also on German sharp S.
|
7
|
4
|
|
5 STARTTEST
|
|
6 :so small.vim
|
1528
|
7 :so mbyte.vim
|
1537
|
8 :" This only works when 'encoding' is "latin1", don't depend on the environment
|
|
9 :set enc=latin1
|
7
|
10 /^abcde
|
|
11 :" Test shift-right of a block
|
|
12 jlllljj>wlljlll>
|
|
13 :" Test shift-left of a block
|
|
14 G$hhhhkk<
|
|
15 :" Test block-insert
|
|
16 GklkkkIxyz
|
|
17 :" Test block-replace
|
|
18 Gllllkkklllrq
|
|
19 :" Test block-change
|
|
20 G$khhhhhkkcmno
|
1528
|
21 :$-4,$w! test.out
|
5471
|
22 :" Test block-insert using cursor keys for movement
|
|
23 /^aaaa/
|
|
24 :exe ":norm! l\<C-V>jjjlllI\<Right>\<Right> \<Esc>"
|
|
25 :/^aa/,/^$/w >> test.out
|
6138
|
26 /xaaa$/
|
|
27 :exe ":norm! \<C-V>jjjI<>\<Left>p\<Esc>"
|
|
28 :/xaaa$/,/^$/w >> test.out
|
5500
|
29 :" Test for Visual block was created with the last <C-v>$
|
|
30 /^A23$/
|
|
31 :exe ":norm! l\<C-V>j$Aab\<Esc>"
|
|
32 :.,/^$/w >> test.out
|
|
33 :" Test for Visual block was created with the middle <C-v>$ (1)
|
|
34 /^B23$/
|
|
35 :exe ":norm! l\<C-V>j$hAab\<Esc>"
|
|
36 :.,/^$/w >> test.out
|
|
37 :" Test for Visual block was created with the middle <C-v>$ (2)
|
|
38 /^C23$/
|
|
39 :exe ":norm! l\<C-V>j$hhAab\<Esc>"
|
|
40 :.,/^$/w >> test.out
|
5730
|
41 :" Test for Visual block insert when virtualedit=all
|
|
42 :set ve=all
|
|
43 :/\t\tline
|
|
44 :exe ":norm! 07l\<C-V>jjIx\<Esc>"
|
|
45 :set ve=
|
|
46 :.,/^$/w >> test.out
|
1528
|
47 :" gUe must uppercase a whole word, also when ß changes to SS
|
|
48 Gothe youtußeuu endYpk0wgUe
|
|
49 :" gUfx must uppercase until x, inclusive.
|
|
50 O- youßtußexu -0fogUfx
|
|
51 :" VU must uppercase a whole line
|
|
52 YpkVU
|
|
53 :" same, when it's the last line in the buffer
|
|
54 YPGi111VUddP
|
|
55 :" Uppercase two lines
|
|
56 Oblah di
|
|
57 doh dutVkUj
|
|
58 :" Uppercase part of two lines
|
|
59 ddppi333k0i222fyllvjfuUk
|
5428
|
60 :" visual replace using Enter or NL
|
|
61 G3o1234567892k05l2jr
G3o987652k02l2jr
|
|
62 G3o1234567892k05l2jr
|
|
63 G3o987652k02l2jr
|
5600
|
64 :"
|
|
65 :" Test cursor position. When ve=block and Visual block mode and $gj
|
|
66 :set ve=block
|
|
67 :exe ":norm! 2k\<C-V>$gj\<Esc>"
|
|
68 :let cpos=getpos("'>")
|
|
69 :$put ='col:'.cpos[2].' off:'.cpos[3]
|
1528
|
70 :/^the/,$w >> test.out
|
|
71 :qa!
|
7
|
72 ENDTEST
|
|
73
|
5730
|
74 line1
|
|
75 line2
|
|
76 line3
|
|
77
|
5471
|
78 aaaaaa
|
|
79 bbbbbb
|
|
80 cccccc
|
|
81 dddddd
|
|
82
|
6138
|
83 xaaa
|
|
84 bbbb
|
|
85 cccc
|
|
86 dddd
|
|
87
|
5500
|
88 A23
|
|
89 4567
|
|
90
|
|
91 B23
|
|
92 4567
|
|
93
|
|
94 C23
|
|
95 4567
|
|
96
|
7
|
97 abcdefghijklm
|
|
98 abcdefghijklm
|
|
99 abcdefghijklm
|
|
100 abcdefghijklm
|
|
101 abcdefghijklm
|