2004
|
1 Test for multi-byte text formatting.
|
4029
|
2 Also test, that 'mps' with multibyte chars works.
|
4203
|
3 And test "ra" on multi-byte characters.
|
2004
|
4
|
|
5 STARTTEST
|
|
6 :so mbyte.vim
|
|
7 :set encoding=utf-8
|
|
8 ENDTEST
|
|
9
|
|
10 Results of test69:
|
|
11
|
|
12 STARTTEST
|
|
13 /^{/+1
|
|
14 :set tw=2 fo=t
|
|
15 gqgqjgqgqo
|
|
16 XYZ
|
|
17 abc XYZ
|
|
18 ENDTEST
|
|
19
|
|
20 {
|
|
21 XYZ
|
|
22 abc XYZ
|
|
23 }
|
|
24
|
|
25 STARTTEST
|
|
26 /^{/+1
|
|
27 :set tw=1 fo=tm
|
|
28 gqgqjgqgqjgqgqjgqgqjgqgqo
|
|
29 X
|
|
30 Xa
|
|
31 X a
|
|
32 XY
|
|
33 X Y
|
|
34 ENDTEST
|
|
35
|
|
36 {
|
|
37 X
|
|
38 Xa
|
|
39 X a
|
|
40 XY
|
|
41 X Y
|
|
42 }
|
|
43
|
|
44 STARTTEST
|
|
45 /^{/+1
|
|
46 :set tw=2 fo=tm
|
|
47 gqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqo
|
|
48 X
|
|
49 Xa
|
|
50 X a
|
|
51 XY
|
|
52 X Y
|
|
53 aX
|
|
54 abX
|
|
55 abcX
|
|
56 abX c
|
|
57 abXY
|
|
58 ENDTEST
|
|
59
|
|
60 {
|
|
61 X
|
|
62 Xa
|
|
63 X a
|
|
64 XY
|
|
65 X Y
|
|
66 aX
|
|
67 abX
|
|
68 abcX
|
|
69 abX c
|
|
70 abXY
|
|
71 }
|
|
72
|
|
73 STARTTEST
|
|
74 /^{/+1
|
|
75 :set ai tw=2 fo=tm
|
|
76 gqgqjgqgqo
|
|
77 X
|
|
78 Xa
|
|
79 ENDTEST
|
|
80
|
|
81 {
|
|
82 X
|
|
83 Xa
|
|
84 }
|
|
85
|
|
86 STARTTEST
|
|
87 /^{/+1
|
|
88 :set noai tw=2 fo=tm
|
|
89 gqgqjgqgqo
|
|
90 X
|
|
91 Xa
|
|
92 ENDTEST
|
|
93
|
|
94 {
|
|
95 X
|
|
96 Xa
|
|
97 }
|
|
98
|
|
99 STARTTEST
|
|
100 /^{/+1
|
|
101 :set tw=2 fo=cqm comments=n:X
|
|
102 gqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqjgqgqo
|
|
103 X
|
|
104 Xa
|
|
105 XaY
|
|
106 XY
|
|
107 XYZ
|
|
108 X Y
|
|
109 X YZ
|
|
110 XX
|
|
111 XXa
|
|
112 XXY
|
|
113 ENDTEST
|
|
114
|
|
115 {
|
|
116 X
|
|
117 Xa
|
|
118 XaY
|
|
119 XY
|
|
120 XYZ
|
|
121 X Y
|
|
122 X YZ
|
|
123 XX
|
|
124 XXa
|
|
125 XXY
|
|
126 }
|
|
127
|
|
128 STARTTEST
|
|
129 /^{/+1
|
|
130 :set tw=2 fo=tm
|
|
131 RXa
|
|
132 ENDTEST
|
|
133
|
|
134 {
|
|
135
|
|
136 }
|
|
137
|
|
138 STARTTEST
|
4029
|
139 /^{/+1
|
|
140 :set mps+=u2018:u2019
|
|
141 d%
|
|
142 ENDTEST
|
|
143
|
|
144 {
|
|
145 ‘ two three ’ four
|
|
146 }
|
|
147 STARTTEST
|
4203
|
148 /^ra test
|
|
149 jVjra
|
|
150 ENDTEST
|
|
151
|
|
152 ra test
|
|
153 abba
|
|
154 aab
|
|
155
|
|
156 STARTTEST
|
2004
|
157 :g/^STARTTEST/.,/^ENDTEST/d
|
|
158 :1;/^Results/,$wq! test.out
|
|
159 ENDTEST
|