annotate src/testdir/test39.in @ 5471:70c3289803b3 v7.4.085

updated for version 7.4.085 Problem: When inserting text in Visual block mode and moving the cursor the wrong text gets repeated in other lines. Solution: Use the '[ mark to find the start of the actually inserted text. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Mon, 11 Nov 2013 01:29:22 +0100
parents d06223965468
children 8451f643a13e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 Test Visual block mode commands
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
3 And test "U" in Visual mode, also on German sharp S.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :so small.vim
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
7 :so mbyte.vim
1537
ff77f541d69d updated for version 7.1-252
vimboss
parents: 1528
diff changeset
8 :" This only works when 'encoding' is "latin1", don't depend on the environment
ff77f541d69d updated for version 7.1-252
vimboss
parents: 1528
diff changeset
9 :set enc=latin1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 /^abcde
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 :" Test shift-right of a block
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 jlllljj>wlljlll>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :" Test shift-left of a block
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 G$hhhhkk<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :" Test block-insert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 GklkkkIxyz
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :" Test block-replace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 Gllllkkklllrq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :" Test block-change
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 G$khhhhhkkcmno
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
21 :$-4,$w! test.out
5471
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
22 :" Test block-insert using cursor keys for movement
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
23 /^aaaa/
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
24 :exe ":norm! l\<C-V>jjjlllI\<Right>\<Right> \<Esc>"
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
25 :/^aa/,/^$/w >> test.out
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
26 :" gUe must uppercase a whole word, also when ß changes to SS
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
27 Gothe youtußeuu endYpk0wgUe
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
28 :" gUfx must uppercase until x, inclusive.
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
29 O- youßtußexu -0fogUfx
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
30 :" VU must uppercase a whole line
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
31 YpkVU
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
32 :" same, when it's the last line in the buffer
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
33 YPGi111VUddP
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
34 :" Uppercase two lines
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
35 Oblah di
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
36 doh dutVkUj
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
37 :" Uppercase part of two lines
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
38 ddppi333k0i222fyllvjfuUk
5428
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
39 :" visual replace using Enter or NL
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
40 G3o1234567892k05l2jr G3o987652k02l2jr
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
41 G3o1234567892k05l2jr
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
42 G3o987652k02l2jr
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
43 :/^the/,$w >> test.out
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
44 :qa!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
5471
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
47 aaaaaa
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
48 bbbbbb
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
49 cccccc
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
50 dddddd
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
51
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 abcdefghijklm