annotate src/testdir/test30.in @ 164:8b0ee9d57d7f

updated for version 7.0050
author vimboss
date Sat, 12 Feb 2005 14:29:27 +0000
parents 588989861c47
children 0b796e045c42
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 Test for a lot of variations of the 'fileformats' option
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 STARTTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 :so small.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 :" first write three test files, one in each format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 :set fileformat=unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 :set fileformats=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 :/^1/w! XX1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 :/^2/w! XX2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 :/^3/w! XX3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 :/^4/w! XX4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 :/^5/w! XX5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 :/^6/w! XX6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 :/^7/w! XX7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 :/^8/w! XX8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 :/^9/w! XX9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 :/^10/w! XX10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 :/^unix/;/eof/-1w! XXUnix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 :/^dos/;/eof/-1w! XXDos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 :set bin noeol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 :$w! XXMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 :set nobin eol
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 :bwipe XXUnix XXDos XXMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 :" create mixed format files
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 :!cat XXUnix XXDos >XXUxDs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 :!cat XXUnix XXMac >XXUxMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 :!cat XXDos XXMac >XXDosMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 :!cat XXUnix XXDos XXMac >XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 :" try reading and writing with 'fileformats' empty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 :set fileformat=unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 :e! XXUnix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 :w! test.out
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 :e! XXDos
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
35 :w! XXtt01
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 :e! XXMac
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
37 :w! XXtt02
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 :bwipe XXUnix XXDos XXMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 :set fileformat=dos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 :e! XXUnix
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
41 :w! XXtt11
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 :e! XXDos
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
43 :w! XXtt12
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 :e! XXMac
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
45 :w! XXtt13
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 :bwipe XXUnix XXDos XXMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 :set fileformat=mac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 :e! XXUnix
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
49 :w! XXtt21
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 :e! XXDos
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
51 :w! XXtt22
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 :e! XXMac
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
53 :w! XXtt23
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 :bwipe XXUnix XXDos XXMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 :" try reading and writing with 'fileformats' set to one format
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 :set fileformats=unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
59 :w! XXtt31
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 :bwipe XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 :set fileformats=dos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
63 :w! XXtt32
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 :bwipe XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 :set fileformats=mac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
67 :w! XXtt33
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 :bwipe XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 :" try reading and writing with 'fileformats' set to two formats
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 :set fileformats=unix,dos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
73 :w! XXtt41
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 :bwipe XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 :e! XXUxMac
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
76 :w! XXtt42
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 :bwipe XXUxMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 :e! XXDosMac
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
79 :w! XXtt43
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 :bwipe XXDosMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 :set fileformats=unix,mac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 :e! XXUxDs
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
83 :w! XXtt51
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 :bwipe XXUxDs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
86 :w! XXtt52
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 :bwipe XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 :e! XXDosMac
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
89 :w! XXtt53
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 :bwipe XXDosMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 :set fileformats=dos,mac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 :e! XXUxDs
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
93 :w! XXtt61
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 :bwipe XXUxDs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 :e! XXUxMac
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
96 :w! XXtt62
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 :bwipe XXUxMac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
99 :w! XXtt63
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 :bwipe XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 :" try reading and writing with 'fileformats' set to three formats
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 :set fileformats=unix,dos,mac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
105 :w! XXtt71
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 :bwipe XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 :set fileformats=mac,dos,unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
109 :w! XXtt81
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 :bwipe XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 :" try with 'binary' set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 :set fileformats=mac,unix,dos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 :set binary
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
115 :w! XXtt91
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 :bwipe XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 :set fileformats=mac
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
119 :w! XXtt92
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 :bwipe XXUxDsMc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 :set fileformats=dos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 :e! XXUxDsMc
57
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
123 :w! XXtt93
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
124 :"
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
125 :" Append "END" to each file so that we can see what the last written char was.
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
126 :set fileformat=unix nobin
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
127 ggdGaEND:w >>XXtt01
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
128 :w >>XXtt02
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
129 :w >>XXtt11
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
130 :w >>XXtt12
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
131 :w >>XXtt13
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
132 :w >>XXtt21
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
133 :w >>XXtt22
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
134 :w >>XXtt23
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
135 :w >>XXtt31
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
136 :w >>XXtt32
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
137 :w >>XXtt33
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
138 :w >>XXtt41
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
139 :w >>XXtt42
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
140 :w >>XXtt43
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
141 :w >>XXtt51
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
142 :w >>XXtt52
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
143 :w >>XXtt53
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
144 :w >>XXtt61
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
145 :w >>XXtt62
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
146 :w >>XXtt63
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
147 :w >>XXtt71
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
148 :w >>XXtt81
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
149 :w >>XXtt91
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
150 :w >>XXtt92
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
151 :w >>XXtt93
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
152 :"
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
153 :" Concatenate the results.
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
154 :" Make fileformat of test.out the native fileformat.
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
155 :" Add a newline at the end.
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
156 :set binary
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
157 :e! test.out
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
158 :$r XXtt01
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
159 :$r XXtt02
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
160 Go1:$r XXtt11
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
161 :$r XXtt12
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
162 :$r XXtt13
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
163 Go2:$r XXtt21
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
164 :$r XXtt22
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
165 :$r XXtt23
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
166 Go3:$r XXtt31
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
167 :$r XXtt32
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
168 :$r XXtt33
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
169 Go4:$r XXtt41
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
170 :$r XXtt42
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
171 :$r XXtt43
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
172 Go5:$r XXtt51
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
173 :$r XXtt52
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
174 :$r XXtt53
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
175 Go6:$r XXtt61
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
176 :$r XXtt62
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
177 :$r XXtt63
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
178 Go7:$r XXtt71
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
179 Go8:$r XXtt81
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
180 Go9:$r XXtt91
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
181 :$r XXtt92
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
182 :$r XXtt93
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
183 Go10:$r XXUnix
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
184 :set nobinary ff&
588989861c47 updated for version 7.0030
vimboss
parents: 7
diff changeset
185 :w
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 :qa!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 ENDTEST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 eof
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 dos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 dos
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 eof
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 mac mac