comparison src/testdir/test30.in @ 57:588989861c47

updated for version 7.0030
author vimboss
date Tue, 04 Jan 2005 21:07:44 +0000
parents 3fc0f57ecb91
children 0b796e045c42
comparison
equal deleted inserted replaced
56:dbf53ece2e23 57:588989861c47
30 :" try reading and writing with 'fileformats' empty 30 :" try reading and writing with 'fileformats' empty
31 :set fileformat=unix 31 :set fileformat=unix
32 :e! XXUnix 32 :e! XXUnix
33 :w! test.out 33 :w! test.out
34 :e! XXDos 34 :e! XXDos
35 :w! XXtt 35 :w! XXtt01
36 :!cat XXtt >>test.out
37 :e! XXMac 36 :e! XXMac
38 :w! XXtt 37 :w! XXtt02
39 :!cat XXtt >>test.out
40 :!cat XX1 >>test.out
41 :bwipe XXUnix XXDos XXMac 38 :bwipe XXUnix XXDos XXMac
42 :set fileformat=dos 39 :set fileformat=dos
43 :e! XXUnix 40 :e! XXUnix
44 :w! XXtt 41 :w! XXtt11
45 :!cat XXtt >>test.out
46 :e! XXDos 42 :e! XXDos
47 :w! XXtt 43 :w! XXtt12
48 :!cat XXtt >>test.out
49 :e! XXMac 44 :e! XXMac
50 :w! XXtt 45 :w! XXtt13
51 :!cat XXtt >>test.out
52 :!cat XX2 >>test.out
53 :bwipe XXUnix XXDos XXMac 46 :bwipe XXUnix XXDos XXMac
54 :set fileformat=mac 47 :set fileformat=mac
55 :e! XXUnix 48 :e! XXUnix
56 :w! XXtt 49 :w! XXtt21
57 :!cat XXtt >>test.out
58 :e! XXDos 50 :e! XXDos
59 :w! XXtt 51 :w! XXtt22
60 :!cat XXtt >>test.out
61 :e! XXMac 52 :e! XXMac
62 :w! XXtt 53 :w! XXtt23
63 :!cat XXtt >>test.out
64 :!cat XX3 >>test.out
65 :bwipe XXUnix XXDos XXMac 54 :bwipe XXUnix XXDos XXMac
66 :" 55 :"
67 :" try reading and writing with 'fileformats' set to one format 56 :" try reading and writing with 'fileformats' set to one format
68 :set fileformats=unix 57 :set fileformats=unix
69 :e! XXUxDsMc 58 :e! XXUxDsMc
70 :w! XXtt 59 :w! XXtt31
71 :!cat XXtt >>test.out
72 :bwipe XXUxDsMc 60 :bwipe XXUxDsMc
73 :set fileformats=dos 61 :set fileformats=dos
74 :e! XXUxDsMc 62 :e! XXUxDsMc
75 :w! XXtt 63 :w! XXtt32
76 :!cat XXtt >>test.out
77 :bwipe XXUxDsMc 64 :bwipe XXUxDsMc
78 :set fileformats=mac 65 :set fileformats=mac
79 :e! XXUxDsMc 66 :e! XXUxDsMc
80 :w! XXtt 67 :w! XXtt33
81 :!cat XXtt >>test.out 68 :bwipe XXUxDsMc
82 :bwipe XXUxDsMc
83 :!cat XX4 >>test.out
84 :" 69 :"
85 :" try reading and writing with 'fileformats' set to two formats 70 :" try reading and writing with 'fileformats' set to two formats
86 :set fileformats=unix,dos 71 :set fileformats=unix,dos
87 :e! XXUxDsMc 72 :e! XXUxDsMc
88 :w! XXtt 73 :w! XXtt41
89 :!cat XXtt >>test.out
90 :bwipe XXUxDsMc 74 :bwipe XXUxDsMc
91 :e! XXUxMac 75 :e! XXUxMac
92 :w! XXtt 76 :w! XXtt42
93 :!cat XXtt >>test.out
94 :bwipe XXUxMac 77 :bwipe XXUxMac
95 :e! XXDosMac 78 :e! XXDosMac
96 :w! XXtt 79 :w! XXtt43
97 :!cat XXtt >>test.out
98 :bwipe XXDosMac 80 :bwipe XXDosMac
99 :!cat XX5 >>test.out
100 :set fileformats=unix,mac 81 :set fileformats=unix,mac
101 :e! XXUxDs 82 :e! XXUxDs
102 :w! XXtt 83 :w! XXtt51
103 :!cat XXtt >>test.out
104 :bwipe XXUxDs 84 :bwipe XXUxDs
105 :e! XXUxDsMc 85 :e! XXUxDsMc
106 :w! XXtt 86 :w! XXtt52
107 :!cat XXtt >>test.out
108 :bwipe XXUxDsMc 87 :bwipe XXUxDsMc
109 :e! XXDosMac 88 :e! XXDosMac
110 :w! XXtt 89 :w! XXtt53
111 :!cat XXtt >>test.out
112 :bwipe XXDosMac 90 :bwipe XXDosMac
113 :!cat XX6 >>test.out
114 :set fileformats=dos,mac 91 :set fileformats=dos,mac
115 :e! XXUxDs 92 :e! XXUxDs
116 :w! XXtt 93 :w! XXtt61
117 :!cat XXtt >>test.out
118 :bwipe XXUxDs 94 :bwipe XXUxDs
119 :e! XXUxMac 95 :e! XXUxMac
120 :w! XXtt 96 :w! XXtt62
121 :!cat XXtt >>test.out
122 :bwipe XXUxMac 97 :bwipe XXUxMac
123 :e! XXUxDsMc 98 :e! XXUxDsMc
124 :w! XXtt 99 :w! XXtt63
125 :!cat XXtt >>test.out 100 :bwipe XXUxDsMc
126 :bwipe XXUxDsMc
127 :!cat XX7 >>test.out
128 :" 101 :"
129 :" try reading and writing with 'fileformats' set to three formats 102 :" try reading and writing with 'fileformats' set to three formats
130 :set fileformats=unix,dos,mac 103 :set fileformats=unix,dos,mac
131 :e! XXUxDsMc 104 :e! XXUxDsMc
132 :w! XXtt 105 :w! XXtt71
133 :!cat XXtt >>test.out 106 :bwipe XXUxDsMc
134 :bwipe XXUxDsMc
135 :!cat XX8 >>test.out
136 :set fileformats=mac,dos,unix 107 :set fileformats=mac,dos,unix
137 :e! XXUxDsMc 108 :e! XXUxDsMc
138 :w! XXtt 109 :w! XXtt81
139 :!cat XXtt >>test.out 110 :bwipe XXUxDsMc
140 :bwipe XXUxDsMc
141 :!cat XX9 >>test.out
142 :" try with 'binary' set 111 :" try with 'binary' set
143 :set fileformats=mac,unix,dos 112 :set fileformats=mac,unix,dos
144 :set binary 113 :set binary
145 :e! XXUxDsMc 114 :e! XXUxDsMc
146 :w! XXtt 115 :w! XXtt91
147 :!cat XXtt >>test.out
148 :bwipe XXUxDsMc 116 :bwipe XXUxDsMc
149 :set fileformats=mac 117 :set fileformats=mac
150 :e! XXUxDsMc 118 :e! XXUxDsMc
151 :w! XXtt 119 :w! XXtt92
152 :!cat XXtt >>test.out
153 :bwipe XXUxDsMc 120 :bwipe XXUxDsMc
154 :set fileformats=dos 121 :set fileformats=dos
155 :e! XXUxDsMc 122 :e! XXUxDsMc
156 :w! XXtt 123 :w! XXtt93
157 :!cat XXtt >>test.out 124 :"
158 :!cat XX10 >>test.out 125 :" Append "END" to each file so that we can see what the last written char was.
159 :" add a newline at the end 126 :set fileformat=unix nobin
160 :!cat XXUnix >>test.out 127 ggdGaEND:w >>XXtt01
128 :w >>XXtt02
129 :w >>XXtt11
130 :w >>XXtt12
131 :w >>XXtt13
132 :w >>XXtt21
133 :w >>XXtt22
134 :w >>XXtt23
135 :w >>XXtt31
136 :w >>XXtt32
137 :w >>XXtt33
138 :w >>XXtt41
139 :w >>XXtt42
140 :w >>XXtt43
141 :w >>XXtt51
142 :w >>XXtt52
143 :w >>XXtt53
144 :w >>XXtt61
145 :w >>XXtt62
146 :w >>XXtt63
147 :w >>XXtt71
148 :w >>XXtt81
149 :w >>XXtt91
150 :w >>XXtt92
151 :w >>XXtt93
152 :"
153 :" Concatenate the results.
154 :" Make fileformat of test.out the native fileformat.
155 :" Add a newline at the end.
156 :set binary
157 :e! test.out
158 :$r XXtt01
159 :$r XXtt02
160 Go1:$r XXtt11
161 :$r XXtt12
162 :$r XXtt13
163 Go2:$r XXtt21
164 :$r XXtt22
165 :$r XXtt23
166 Go3:$r XXtt31
167 :$r XXtt32
168 :$r XXtt33
169 Go4:$r XXtt41
170 :$r XXtt42
171 :$r XXtt43
172 Go5:$r XXtt51
173 :$r XXtt52
174 :$r XXtt53
175 Go6:$r XXtt61
176 :$r XXtt62
177 :$r XXtt63
178 Go7:$r XXtt71
179 Go8:$r XXtt81
180 Go9:$r XXtt91
181 :$r XXtt92
182 :$r XXtt93
183 Go10:$r XXUnix
184 :set nobinary ff&
185 :w
161 :qa! 186 :qa!
162 ENDTEST 187 ENDTEST
163 188
164 1 189 1
165 2 190 2