Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | |
| 2 | Test Visual block mode commands |
Bram Moolenaar | e60c58d | 2008-02-06 13:44:43 +0000 | [diff] [blame] | 3 | And test "U" in Visual mode, also on German sharp S. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 4 | |
| 5 | STARTTEST |
| 6 | :so small.vim |
Bram Moolenaar | e60c58d | 2008-02-06 13:44:43 +0000 | [diff] [blame] | 7 | :so mbyte.vim |
Bram Moolenaar | 275a8a0 | 2008-02-14 21:20:26 +0000 | [diff] [blame] | 8 | :" This only works when 'encoding' is "latin1", don't depend on the environment |
| 9 | :set enc=latin1 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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 |
Bram Moolenaar | e60c58d | 2008-02-06 13:44:43 +0000 | [diff] [blame] | 21 | :$-4,$w! test.out |
| 22 | :" gUe must uppercase a whole word, also when ß changes to SS |
| 23 | Gothe youtußeuu endYpk0wgUe |
| 24 | :" gUfx must uppercase until x, inclusive. |
| 25 | O- youßtußexu -0fogUfx |
| 26 | :" VU must uppercase a whole line |
| 27 | YpkVU |
| 28 | :" same, when it's the last line in the buffer |
| 29 | YPGi111VUddP |
| 30 | :" Uppercase two lines |
| 31 | Oblah di |
| 32 | doh dutVkUj |
| 33 | :" Uppercase part of two lines |
| 34 | ddppi333k0i222fyllvjfuUk |
| 35 | :/^the/,$w >> test.out |
| 36 | :qa! |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 37 | ENDTEST |
| 38 | |
| 39 | abcdefghijklm |
| 40 | abcdefghijklm |
| 41 | abcdefghijklm |
| 42 | abcdefghijklm |
| 43 | abcdefghijklm |