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 | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 8 | /^abcde |
| 9 | :" Test shift-right of a block |
| 10 | jlllljj>wlljlll> |
| 11 | :" Test shift-left of a block |
| 12 | G$hhhhkk< |
| 13 | :" Test block-insert |
| 14 | GklkkkIxyz |
| 15 | :" Test block-replace |
| 16 | Gllllkkklllrq |
| 17 | :" Test block-change |
| 18 | G$khhhhhkkcmno |
Bram Moolenaar | e60c58d | 2008-02-06 13:44:43 +0000 | [diff] [blame^] | 19 | :$-4,$w! test.out |
| 20 | :" gUe must uppercase a whole word, also when ß changes to SS |
| 21 | Gothe youtußeuu endYpk0wgUe |
| 22 | :" gUfx must uppercase until x, inclusive. |
| 23 | O- youßtußexu -0fogUfx |
| 24 | :" VU must uppercase a whole line |
| 25 | YpkVU |
| 26 | :" same, when it's the last line in the buffer |
| 27 | YPGi111VUddP |
| 28 | :" Uppercase two lines |
| 29 | Oblah di |
| 30 | doh dutVkUj |
| 31 | :" Uppercase part of two lines |
| 32 | ddppi333k0i222fyllvjfuUk |
| 33 | :/^the/,$w >> test.out |
| 34 | :qa! |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 35 | ENDTEST |
| 36 | |
| 37 | abcdefghijklm |
| 38 | abcdefghijklm |
| 39 | abcdefghijklm |
| 40 | abcdefghijklm |
| 41 | abcdefghijklm |