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