blob: d39ba82d9e0ed84b97c15464e86045a5ff8970fe [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001
2Test Visual block mode commands
Bram Moolenaare60c58d2008-02-06 13:44:43 +00003And test "U" in Visual mode, also on German sharp S.
Bram Moolenaar071d4272004-06-13 20:20:40 +00004
5STARTTEST
6:so small.vim
Bram Moolenaare60c58d2008-02-06 13:44:43 +00007:so mbyte.vim
Bram Moolenaar275a8a02008-02-14 21:20:26 +00008:" This only works when 'encoding' is "latin1", don't depend on the environment
9:set enc=latin1
Bram Moolenaar071d4272004-06-13 20:20:40 +000010/^abcde
11:" Test shift-right of a block
12jlllljj>wlljlll>
13:" Test shift-left of a block
14G$hhhhkk<
15:" Test block-insert
16GklkkkIxyz
17:" Test block-replace
18Gllllkkklllrq
19:" Test block-change
20G$khhhhhkkcmno
Bram Moolenaare60c58d2008-02-06 13:44:43 +000021:$-4,$w! test.out
22:" gUe must uppercase a whole word, also when ß changes to SS
23Gothe youtußeuu endYpk0wgUe
24:" gUfx must uppercase until x, inclusive.
25O- youßtußexu -0fogUfx
26:" VU must uppercase a whole line
27YpkVU
28:" same, when it's the last line in the buffer
29YPGi111VUddP
30:" Uppercase two lines
31Oblah di
32doh dutVkUj
33:" Uppercase part of two lines
34ddppi333k0i222fyllvjfuUk
35:/^the/,$w >> test.out
36:qa!
Bram Moolenaar071d4272004-06-13 20:20:40 +000037ENDTEST
38
39abcdefghijklm
40abcdefghijklm
41abcdefghijklm
42abcdefghijklm
43abcdefghijklm