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