annotate src/testdir/test39.in @ 8461:988ddc5742f5 v7.4.1521

commit https://github.com/vim/vim/commit/8322e1f06e8fa39a6bb790a7d8d7db5d7aff3366 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 8 19:20:04 2016 +0100 patch 7.4.1521 Problem: File permission test fails on MS-Windows. Solution: Expect a different permission.
author Christian Brabandt <cb@256bit.org>
date Tue, 08 Mar 2016 19:30:05 +0100
parents c7d12c7eb2b6
children
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
6579
a287b0e9e87b updated for version 7.4.616
Bram Moolenaar <bram@vim.org>
parents: 6460
diff changeset
5 #define BO_ALL 0x0001
a287b0e9e87b updated for version 7.4.616
Bram Moolenaar <bram@vim.org>
parents: 6460
diff changeset
6 #define BO_BS 0x0002
a287b0e9e87b updated for version 7.4.616
Bram Moolenaar <bram@vim.org>
parents: 6460
diff changeset
7 #define BO_CRSR 0x0004
a287b0e9e87b updated for version 7.4.616
Bram Moolenaar <bram@vim.org>
parents: 6460
diff changeset
8
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :so small.vim
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
11 :so mbyte.vim
1537
ff77f541d69d updated for version 7.1-252
vimboss
parents: 1528
diff changeset
12 :" 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
13 :set enc=latin1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 /^abcde
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :" Test shift-right of a block
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 jlllljj>wlljlll>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :" Test shift-left of a block
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 G$hhhhkk<
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :" Test block-insert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 GklkkkIxyz
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :" Test block-replace
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 Gllllkkklllrq
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 :" Test block-change
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 G$khhhhhkkcmno
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
25 :$-4,$w! test.out
5471
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
26 :" Test block-insert using cursor keys for movement
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
27 /^aaaa/
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
28 :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
29 :/^aa/,/^$/w >> test.out
6138
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
30 /xaaa$/
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
31 :exe ":norm! \<C-V>jjjI<>\<Left>p\<Esc>"
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
32 :/xaaa$/,/^$/w >> test.out
5500
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 last <C-v>$
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
34 /^A23$/
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
35 :exe ":norm! l\<C-V>j$Aab\<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>$ (1)
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
38 /^B23$/
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
39 :exe ":norm! l\<C-V>j$hAab\<Esc>"
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
40 :.,/^$/w >> test.out
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
41 :" 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
42 /^C23$/
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
43 :exe ":norm! l\<C-V>j$hhAab\<Esc>"
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
44 :.,/^$/w >> test.out
6460
29f5cfca3388 updated for version 7.4.559
Bram Moolenaar <bram@vim.org>
parents: 6448
diff changeset
45 :" Test for Visual block insert when virtualedit=all and utf-8 encoding
29f5cfca3388 updated for version 7.4.559
Bram Moolenaar <bram@vim.org>
parents: 6448
diff changeset
46 :set ve=all enc=utf-8
5730
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
47 :/\t\tline
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
48 :exe ":norm! 07l\<C-V>jjIx\<Esc>"
6460
29f5cfca3388 updated for version 7.4.559
Bram Moolenaar <bram@vim.org>
parents: 6448
diff changeset
49 :.,/^$/w >> test.out
29f5cfca3388 updated for version 7.4.559
Bram Moolenaar <bram@vim.org>
parents: 6448
diff changeset
50 :" Test for Visual block append when virtualedit=all
29f5cfca3388 updated for version 7.4.559
Bram Moolenaar <bram@vim.org>
parents: 6448
diff changeset
51 :exe ":norm! 012l\<C-v>jjAx\<Esc>"
29f5cfca3388 updated for version 7.4.559
Bram Moolenaar <bram@vim.org>
parents: 6448
diff changeset
52 :set ve= enc=latin1
5730
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
53 :.,/^$/w >> test.out
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
54 :" gUe must uppercase a whole word, also when ß changes to SS
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
55 Gothe youtußeuu endYpk0wgUe
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
56 :" gUfx must uppercase until x, inclusive.
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
57 O- youßtußexu -0fogUfx
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
58 :" VU must uppercase a whole line
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
59 YpkVU
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
60 :" same, when it's the last line in the buffer
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
61 YPGi111VUddP
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
62 :" Uppercase two lines
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
63 Oblah di
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
64 doh dutVkUj
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
65 :" Uppercase part of two lines
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
66 ddppi333k0i222fyllvjfuUk
5428
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
67 :" visual replace using Enter or NL
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
68 G3o1234567892k05l2jr G3o987652k02l2jr
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
69 G3o1234567892k05l2jr
d06223965468 updated for version 7.4.064
Bram Moolenaar <bram@vim.org>
parents: 1537
diff changeset
70 G3o987652k02l2jr
5600
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
71 :"
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
72 :" 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
73 :set ve=block
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
74 :exe ":norm! 2k\<C-V>$gj\<Esc>"
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
75 :let cpos=getpos("'>")
d289f2167d70 updated for version 7.4.147
Bram Moolenaar <bram@vim.org>
parents: 5500
diff changeset
76 :$put ='col:'.cpos[2].' off:'.cpos[3]
6579
a287b0e9e87b updated for version 7.4.616
Bram Moolenaar <bram@vim.org>
parents: 6460
diff changeset
77 :"
a287b0e9e87b updated for version 7.4.616
Bram Moolenaar <bram@vim.org>
parents: 6460
diff changeset
78 :" block_insert when replacing spaces in front of the block with tabs
a287b0e9e87b updated for version 7.4.616
Bram Moolenaar <bram@vim.org>
parents: 6460
diff changeset
79 :set ts=8 sts=4 sw=4
a287b0e9e87b updated for version 7.4.616
Bram Moolenaar <bram@vim.org>
parents: 6460
diff changeset
80 :4,7y
a287b0e9e87b updated for version 7.4.616
Bram Moolenaar <bram@vim.org>
parents: 6460
diff changeset
81 Gp
a287b0e9e87b updated for version 7.4.616
Bram Moolenaar <bram@vim.org>
parents: 6460
diff changeset
82 :exe ":norm! f0\<C-V>2jI\<tab>\<esc>"
1528
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
83 :/^the/,$w >> test.out
e212d1a40ca9 updated for version 7.1-243
vimboss
parents: 7
diff changeset
84 :qa!
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
5730
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
87 line1
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
88 line2
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
89 line3
420fd9cb86d5 updated for version 7.4.210
Bram Moolenaar <bram@vim.org>
parents: 5600
diff changeset
90
5471
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
91 aaaaaa
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
92 bbbbbb
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
93 cccccc
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
94 dddddd
70c3289803b3 updated for version 7.4.085
Bram Moolenaar <bram@vim.org>
parents: 5428
diff changeset
95
6138
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
96 xaaa
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
97 bbbb
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
98 cccc
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
99 dddd
3f92ef156c66 updated for version 7.4.407
Bram Moolenaar <bram@vim.org>
parents: 5730
diff changeset
100
6448
e13f8073c9f9 updated for version 7.4.553
Bram Moolenaar <bram@vim.org>
parents: 6138
diff changeset
101 yaaa
e13f8073c9f9 updated for version 7.4.553
Bram Moolenaar <bram@vim.org>
parents: 6138
diff changeset
102 ¿¿¿
e13f8073c9f9 updated for version 7.4.553
Bram Moolenaar <bram@vim.org>
parents: 6138
diff changeset
103 bbb
e13f8073c9f9 updated for version 7.4.553
Bram Moolenaar <bram@vim.org>
parents: 6138
diff changeset
104
5500
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
105 A23
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
106 4567
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
107
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
108 B23
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
109 4567
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
110
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
111 C23
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
112 4567
8451f643a13e updated for version 7.4.099
Bram Moolenaar <bram@vim.org>
parents: 5471
diff changeset
113
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 abcdefghijklm
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 abcdefghijklm