annotate src/testdir/test39.in @ 6305:b8caf7045e3d v7.4.486

updated for version 7.4.486 Problem: Check for writing to a yank register is wrong. Solution: Negate the check. (Zyx). Also clean up the #ifdefs.
author Bram Moolenaar <bram@vim.org>
date Tue, 21 Oct 2014 20:01:58 +0200
parents 3f92ef156c66
children e13f8073c9f9
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
6138
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
26 /xaaa$/
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
27 :exe ":norm! \<C-V>jjjI<>\<Left>p\<Esc>"
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
28 :/xaaa$/,/^$/w >> test.out
5500
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
29 :" Test for Visual block was created with the last <C-v>$
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
30 /^A23$/
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
31 :exe ":norm! l\<C-V>j$Aab\<Esc>"
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
32 :.,/^$/w >> test.out
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
33 :" Test for Visual block was created with the middle <C-v>$ (1)
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
34 /^B23$/
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
35 :exe ":norm! l\<C-V>j$hAab\<Esc>"
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
36 :.,/^$/w >> test.out
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
37 :" Test for Visual block was created with the middle <C-v>$ (2)
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
38 /^C23$/
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
39 :exe ":norm! l\<C-V>j$hhAab\<Esc>"
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
40 :.,/^$/w >> test.out
5730
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
41 :" Test for Visual block insert when virtualedit=all
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
42 :set ve=all
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
43 :/\t\tline
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
44 :exe ":norm! 07l\<C-V>jjIx\<Esc>"
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
45 :set ve=
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
46 :.,/^$/w >> test.out
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
47 :" gUe must uppercase a whole word, also when ß changes to SS
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
48 Gothe youtußeuu endYpk0wgUe
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
49 :" gUfx must uppercase until x, inclusive.
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
50 O- youßtußexu -0fogUfx
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
51 :" VU must uppercase a whole line
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
52 YpkVU
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
53 :" same, when it's the last line in the buffer
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
54 YPGi111VUddP
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
55 :" Uppercase two lines
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
56 Oblah di
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
57 doh dutVkUj
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
58 :" Uppercase part of two lines
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
59 ddppi333k0i222fyllvjfuUk
5428
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
60 :" visual replace using Enter or NL
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
61 G3o1234567892k05l2jr G3o987652k02l2jr
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
62 G3o1234567892k05l2jr
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
63 G3o987652k02l2jr
5600
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
64 :"
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
65 :" Test cursor position. When ve=block and Visual block mode and $gj
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
66 :set ve=block
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
67 :exe ":norm! 2k\<C-V>$gj\<Esc>"
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
68 :let cpos=getpos("'>")
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
69 :$put ='col:'.cpos[2].' off:'.cpos[3]
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
70 :/^the/,$w >> test.out
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
71 :qa!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
5730
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
74 line1
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
75 line2
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
76 line3
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
77
5471
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
78 aaaaaa
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
79 bbbbbb
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
80 cccccc
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
81 dddddd
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
82
6138
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
83 xaaa
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
84 bbbb
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
85 cccc
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
86 dddd
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
87
5500
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
88 A23
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
89 4567
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
90
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
91 B23
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
92 4567
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
93
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
94 C23
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
95 4567
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
96
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 abcdefghijklm