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
|
1528
|
26 :" gUe must uppercase a whole word, also when ß changes to SS
|
|
27 Gothe youtußeuu endYpk0wgUe
|
|
28 :" gUfx must uppercase until x, inclusive.
|
|
29 O- youßtußexu -0fogUfx
|
|
30 :" VU must uppercase a whole line
|
|
31 YpkVU
|
|
32 :" same, when it's the last line in the buffer
|
|
33 YPGi111VUddP
|
|
34 :" Uppercase two lines
|
|
35 Oblah di
|
|
36 doh dutVkUj
|
|
37 :" Uppercase part of two lines
|
|
38 ddppi333k0i222fyllvjfuUk
|
5428
|
39 :" visual replace using Enter or NL
|
|
40 G3o1234567892k05l2jr
G3o987652k02l2jr
|
|
41 G3o1234567892k05l2jr
|
|
42 G3o987652k02l2jr
|
1528
|
43 :/^the/,$w >> test.out
|
|
44 :qa!
|
7
|
45 ENDTEST
|
|
46
|
5471
|
47 aaaaaa
|
|
48 bbbbbb
|
|
49 cccccc
|
|
50 dddddd
|
|
51
|
7
|
52 abcdefghijklm
|
|
53 abcdefghijklm
|
|
54 abcdefghijklm
|
|
55 abcdefghijklm
|
|
56 abcdefghijklm
|