Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1 | Tests for "vaBiB", end could be wrong. |
| 2 | Also test ":s/pat/sub/" with different ~s in sub. |
| 3 | Also test for ^Vxff and ^Vo123 in Insert mode. |
| 4 | Also test "[m", "]m", "[M" and "]M" |
| 5 | |
| 6 | STARTTEST |
| 7 | :so small.vim |
| 8 | /Start cursor here |
| 9 | vaBiBD:?Bug?,/Piece/-2w! test.out |
| 10 | /^- Bug |
| 11 | :s/u/~u~/ |
| 12 | :s/i/~u~/ |
| 13 | :s/o/~~~/ |
| 14 | :.w >>test.out |
| 15 | :if has("ebcdic") |
| 16 | : let tt = "o\<C-V>193\<C-V>xc2\<C-V>o303 \<C-V>90a\<C-V>xfg\<C-V>o578\<Esc>" |
| 17 | :else |
| 18 | : let tt = "o\<C-V>65\<C-V>x42\<C-V>o103 \<C-V>33a\<C-V>xfg\<C-V>o78\<Esc>" |
| 19 | :endif |
| 20 | :exe "normal " . tt |
Bram Moolenaar | 9d2c8c1 | 2007-09-25 16:00:00 +0000 | [diff] [blame] | 21 | :unlet tt |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 22 | :.w >>test.out |
| 23 | :set vb |
| 24 | /^Piece |
| 25 | 2]maA:.w >>test.out |
| 26 | j]maB:.w >>test.out |
| 27 | ]maC:.w >>test.out |
| 28 | [maD:.w >>test.out |
| 29 | k2[maE:.w >>test.out |
| 30 | 3[maF:.w >>test.out |
| 31 | ]MaG:.w >>test.out |
| 32 | j2]MaH:.w >>test.out |
| 33 | ]M]MaI:.w >>test.out |
| 34 | 2[MaJ:.w >>test.out |
| 35 | k[MaK:.w >>test.out |
| 36 | 3[MaL:.w >>test.out |
| 37 | :qa! |
| 38 | ENDTEST |
| 39 | |
| 40 | - Bug in "vPPPP" on this text (Webb): |
| 41 | { |
| 42 | cmd; |
| 43 | { |
| 44 | cmd; /* <-- Start cursor here */ |
| 45 | { |
| 46 | } |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | Piece of Java |
| 51 | { |
| 52 | tt m1 { |
| 53 | t1; |
| 54 | } e1 |
| 55 | |
| 56 | tt m2 { |
| 57 | t2; |
| 58 | } e2 |
| 59 | |
| 60 | tt m3 { |
| 61 | if (x) |
| 62 | { |
| 63 | t3; |
| 64 | } |
| 65 | } e3 |
| 66 | } |