annotate src/testdir/test69.in @ 8978:cf47625d9df9

Added tag v7.4.1774 for changeset b3da1ec8d1562a680722dd118c031764c2d8a508
author Christian Brabandt <cb@256bit.org>
date Fri, 22 Apr 2016 12:00:07 +0200
parents 238f5027830c
children 1090d6637cfd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2004
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
1 Test for multi-byte text formatting.
4029
d179a8eff9d7 updated for version 7.3.769
Bram Moolenaar <bram@vim.org>
parents: 2004
diff changeset
2 Also test, that 'mps' with multibyte chars works.
4203
eea32254940f updated for version 7.3.853
Bram Moolenaar <bram@vim.org>
parents: 4029
diff changeset
3 And test "ra" on multi-byte characters.
5413
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
4 Also test byteidx() and byteidxcomp()
2004
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
5
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
6 STARTTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
7 :so mbyte.vim
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
8 :set encoding=utf-8
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
9 ENDTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
10
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
11 Results of test69:
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
12
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
13 STARTTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
14 /^{/+1
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
15 :set tw=2 fo=t
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
16 gqgqjgqgqo
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
17 XYZ
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
18 abc XYZ
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
19 ENDTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
20
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
21 {
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
22 XYZ
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
23 abc XYZ
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
24 }
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
25
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
26 STARTTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
27 /^{/+1
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
28 :set tw=1 fo=tm
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
29 gqgqjgqgqjgqgqjgqgqjgqgqo
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
30
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
31 Xa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
32 X a
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
33 XY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
34 X Y
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
35 ENDTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
36
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
37 {
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
38
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
39 Xa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
40 X a
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
41 XY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
42 X Y
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
43 }
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
44
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
45 STARTTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
46 /^{/+1
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
47 :set tw=2 fo=tm
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
48 gqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqo
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
49
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
50 Xa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
51 X a
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
52 XY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
53 X Y
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
54 aX
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
55 abX
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
56 abcX
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
57 abX c
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
58 abXY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
59 ENDTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
60
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
61 {
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
62
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
63 Xa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
64 X a
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
65 XY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
66 X Y
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
67 aX
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
68 abX
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
69 abcX
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
70 abX c
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
71 abXY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
72 }
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
73
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
74 STARTTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
75 /^{/+1
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
76 :set ai tw=2 fo=tm
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
77 gqgqjgqgqo
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
78
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
79 Xa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
80 ENDTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
81
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
82 {
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
83
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
84 Xa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
85 }
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
86
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
87 STARTTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
88 /^{/+1
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
89 :set noai tw=2 fo=tm
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
90 gqgqjgqgqo
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
91
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
92 Xa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
93 ENDTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
94
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
95 {
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
96
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
97 Xa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
98 }
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
99
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
100 STARTTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
101 /^{/+1
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
102 :set tw=2 fo=cqm comments=n:X
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
103 gqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqo
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
104
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
105 Xa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
106 XaY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
107 XY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
108 XYZ
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
109 X Y
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
110 X YZ
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
111 XX
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
112 XXa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
113 XXY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
114 ENDTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
115
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
116 {
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
117
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
118 Xa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
119 XaY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
120 XY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
121 XYZ
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
122 X Y
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
123 X YZ
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
124 XX
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
125 XXa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
126 XXY
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
127 }
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
128
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
129 STARTTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
130 /^{/+1
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
131 :set tw=2 fo=tm
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
132 RXa
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
133 ENDTEST
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
134
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
135 {
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
136
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
137 }
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
138
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
139 STARTTEST
4029
d179a8eff9d7 updated for version 7.3.769
Bram Moolenaar <bram@vim.org>
parents: 2004
diff changeset
140 /^{/+1
d179a8eff9d7 updated for version 7.3.769
Bram Moolenaar <bram@vim.org>
parents: 2004
diff changeset
141 :set mps+=u2018:u2019
d179a8eff9d7 updated for version 7.3.769
Bram Moolenaar <bram@vim.org>
parents: 2004
diff changeset
142 d%
d179a8eff9d7 updated for version 7.3.769
Bram Moolenaar <bram@vim.org>
parents: 2004
diff changeset
143 ENDTEST
d179a8eff9d7 updated for version 7.3.769
Bram Moolenaar <bram@vim.org>
parents: 2004
diff changeset
144
d179a8eff9d7 updated for version 7.3.769
Bram Moolenaar <bram@vim.org>
parents: 2004
diff changeset
145 {
d179a8eff9d7 updated for version 7.3.769
Bram Moolenaar <bram@vim.org>
parents: 2004
diff changeset
146 ‘ two three ’ four
d179a8eff9d7 updated for version 7.3.769
Bram Moolenaar <bram@vim.org>
parents: 2004
diff changeset
147 }
d179a8eff9d7 updated for version 7.3.769
Bram Moolenaar <bram@vim.org>
parents: 2004
diff changeset
148 STARTTEST
4203
eea32254940f updated for version 7.3.853
Bram Moolenaar <bram@vim.org>
parents: 4029
diff changeset
149 /^ra test
eea32254940f updated for version 7.3.853
Bram Moolenaar <bram@vim.org>
parents: 4029
diff changeset
150 jVjra
eea32254940f updated for version 7.3.853
Bram Moolenaar <bram@vim.org>
parents: 4029
diff changeset
151 ENDTEST
eea32254940f updated for version 7.3.853
Bram Moolenaar <bram@vim.org>
parents: 4029
diff changeset
152
eea32254940f updated for version 7.3.853
Bram Moolenaar <bram@vim.org>
parents: 4029
diff changeset
153 ra test
eea32254940f updated for version 7.3.853
Bram Moolenaar <bram@vim.org>
parents: 4029
diff changeset
154 abba
eea32254940f updated for version 7.3.853
Bram Moolenaar <bram@vim.org>
parents: 4029
diff changeset
155 aab
eea32254940f updated for version 7.3.853
Bram Moolenaar <bram@vim.org>
parents: 4029
diff changeset
156
eea32254940f updated for version 7.3.853
Bram Moolenaar <bram@vim.org>
parents: 4029
diff changeset
157 STARTTEST
5682
a1c07956171a updated for version 7.4.187
Bram Moolenaar <bram@vim.org>
parents: 5413
diff changeset
158 :set whichwrap+=h
a1c07956171a updated for version 7.4.187
Bram Moolenaar <bram@vim.org>
parents: 5413
diff changeset
159 /^x
a1c07956171a updated for version 7.4.187
Bram Moolenaar <bram@vim.org>
parents: 5413
diff changeset
160 dh
a1c07956171a updated for version 7.4.187
Bram Moolenaar <bram@vim.org>
parents: 5413
diff changeset
161 :set whichwrap-=h
a1c07956171a updated for version 7.4.187
Bram Moolenaar <bram@vim.org>
parents: 5413
diff changeset
162 ENDTEST
a1c07956171a updated for version 7.4.187
Bram Moolenaar <bram@vim.org>
parents: 5413
diff changeset
163
a1c07956171a updated for version 7.4.187
Bram Moolenaar <bram@vim.org>
parents: 5413
diff changeset
164 á
a1c07956171a updated for version 7.4.187
Bram Moolenaar <bram@vim.org>
parents: 5413
diff changeset
165 x
a1c07956171a updated for version 7.4.187
Bram Moolenaar <bram@vim.org>
parents: 5413
diff changeset
166
a1c07956171a updated for version 7.4.187
Bram Moolenaar <bram@vim.org>
parents: 5413
diff changeset
167 STARTTEST
5413
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
168 :let a = '.é.' " one char of two bytes
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
169 :let b = '.é.' " normal e with composing char
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
170 /^byteidx
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
171 :put =string([byteidx(a, 0), byteidx(a, 1), byteidx(a, 2), byteidx(a, 3), byteidx(a, 4)])
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
172 :put =string([byteidx(b, 0), byteidx(b, 1), byteidx(b, 2), byteidx(b, 3), byteidx(b, 4)])
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
173 /^byteidxcomp
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
174 :put =string([byteidxcomp(a, 0), byteidxcomp(a, 1), byteidxcomp(a, 2), byteidxcomp(a, 3), byteidxcomp(a, 4)])
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
175 :let b = '.é.'
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
176 :put =string([byteidxcomp(b, 0), byteidxcomp(b, 1), byteidxcomp(b, 2), byteidxcomp(b, 3), byteidxcomp(b, 4), byteidxcomp(b, 5)])
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
177 ENDTEST
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
178
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
179 byteidx
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
180 byteidxcomp
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
181
3109053ce4e3 updated for version 7.4.057
Bram Moolenaar <bram@vim.org>
parents: 4203
diff changeset
182 STARTTEST
5964
238f5027830c updated for version 7.4.323
Bram Moolenaar <bram@vim.org>
parents: 5682
diff changeset
183 /^substitute
238f5027830c updated for version 7.4.323
Bram Moolenaar <bram@vim.org>
parents: 5682
diff changeset
184 :let y = substitute('123', '\zs', 'a', 'g') | put =y
238f5027830c updated for version 7.4.323
Bram Moolenaar <bram@vim.org>
parents: 5682
diff changeset
185 ENDTEST
238f5027830c updated for version 7.4.323
Bram Moolenaar <bram@vim.org>
parents: 5682
diff changeset
186
238f5027830c updated for version 7.4.323
Bram Moolenaar <bram@vim.org>
parents: 5682
diff changeset
187 substitute
238f5027830c updated for version 7.4.323
Bram Moolenaar <bram@vim.org>
parents: 5682
diff changeset
188
238f5027830c updated for version 7.4.323
Bram Moolenaar <bram@vim.org>
parents: 5682
diff changeset
189 STARTTEST
2004
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
190 :g/^STARTTEST/.,/^ENDTEST/d
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
191 :1;/^Results/,$wq! test.out
9e554211caf5 updated for version 7.2-301
vimboss
parents:
diff changeset
192 ENDTEST