1 Test for a lot of variations of the 'fileformats' option
5 :" first write three test files, one in each format
18 :/^unix/;/eof/-1w! XXUnix
19 :/^dos/;/eof/-1w! XXDos
23 :bwipe XXUnix XXDos XXMac
24 :" create mixed format files
25 :!cat XXUnix XXDos >XXUxDs
26 :!cat XXUnix XXMac >XXUxMac
27 :!cat XXDos XXMac >XXDosMac
28 :!cat XXUnix XXDos XXMac >XXUxDsMc
30 :" try reading and writing with 'fileformats' empty
38 :bwipe XXUnix XXDos XXMac
46 :bwipe XXUnix XXDos XXMac
54 :bwipe XXUnix XXDos XXMac
56 :" try reading and writing with 'fileformats' set to one format
70 :" try reading and writing with 'fileformats' set to two formats
71 :set fileformats=unix,dos
81 :set fileformats=unix,mac
91 :set fileformats=dos,mac
102 :" try reading and writing with 'fileformats' set to three formats
103 :set fileformats=unix,dos,mac
107 :set fileformats=mac,dos,unix
111 :" try with 'binary' set
112 :set fileformats=mac,unix,dos
125 :" Append "END" to each file so that we can see what the last written char was.
126 :set fileformat=unix nobin
127 ggdGaEND
\e:w >>XXtt01
153 :" Concatenate the results.
154 :" Make fileformat of test.out the native fileformat.
155 :" Add a newline at the end.