mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
updated for version 7.0030
This commit is contained in:
@@ -32,132 +32,157 @@ STARTTEST
|
|||||||
:e! XXUnix
|
:e! XXUnix
|
||||||
:w! test.out
|
:w! test.out
|
||||||
:e! XXDos
|
:e! XXDos
|
||||||
:w! XXtt
|
:w! XXtt01
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:e! XXMac
|
:e! XXMac
|
||||||
:w! XXtt
|
:w! XXtt02
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:!cat XX1 >>test.out
|
|
||||||
:bwipe XXUnix XXDos XXMac
|
:bwipe XXUnix XXDos XXMac
|
||||||
:set fileformat=dos
|
:set fileformat=dos
|
||||||
:e! XXUnix
|
:e! XXUnix
|
||||||
:w! XXtt
|
:w! XXtt11
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:e! XXDos
|
:e! XXDos
|
||||||
:w! XXtt
|
:w! XXtt12
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:e! XXMac
|
:e! XXMac
|
||||||
:w! XXtt
|
:w! XXtt13
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:!cat XX2 >>test.out
|
|
||||||
:bwipe XXUnix XXDos XXMac
|
:bwipe XXUnix XXDos XXMac
|
||||||
:set fileformat=mac
|
:set fileformat=mac
|
||||||
:e! XXUnix
|
:e! XXUnix
|
||||||
:w! XXtt
|
:w! XXtt21
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:e! XXDos
|
:e! XXDos
|
||||||
:w! XXtt
|
:w! XXtt22
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:e! XXMac
|
:e! XXMac
|
||||||
:w! XXtt
|
:w! XXtt23
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:!cat XX3 >>test.out
|
|
||||||
:bwipe XXUnix XXDos XXMac
|
:bwipe XXUnix XXDos XXMac
|
||||||
:"
|
:"
|
||||||
:" try reading and writing with 'fileformats' set to one format
|
:" try reading and writing with 'fileformats' set to one format
|
||||||
:set fileformats=unix
|
:set fileformats=unix
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt31
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDsMc
|
:bwipe XXUxDsMc
|
||||||
:set fileformats=dos
|
:set fileformats=dos
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt32
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDsMc
|
:bwipe XXUxDsMc
|
||||||
:set fileformats=mac
|
:set fileformats=mac
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt33
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDsMc
|
:bwipe XXUxDsMc
|
||||||
:!cat XX4 >>test.out
|
|
||||||
:"
|
:"
|
||||||
:" try reading and writing with 'fileformats' set to two formats
|
:" try reading and writing with 'fileformats' set to two formats
|
||||||
:set fileformats=unix,dos
|
:set fileformats=unix,dos
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt41
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDsMc
|
:bwipe XXUxDsMc
|
||||||
:e! XXUxMac
|
:e! XXUxMac
|
||||||
:w! XXtt
|
:w! XXtt42
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxMac
|
:bwipe XXUxMac
|
||||||
:e! XXDosMac
|
:e! XXDosMac
|
||||||
:w! XXtt
|
:w! XXtt43
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXDosMac
|
:bwipe XXDosMac
|
||||||
:!cat XX5 >>test.out
|
|
||||||
:set fileformats=unix,mac
|
:set fileformats=unix,mac
|
||||||
:e! XXUxDs
|
:e! XXUxDs
|
||||||
:w! XXtt
|
:w! XXtt51
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDs
|
:bwipe XXUxDs
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt52
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDsMc
|
:bwipe XXUxDsMc
|
||||||
:e! XXDosMac
|
:e! XXDosMac
|
||||||
:w! XXtt
|
:w! XXtt53
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXDosMac
|
:bwipe XXDosMac
|
||||||
:!cat XX6 >>test.out
|
|
||||||
:set fileformats=dos,mac
|
:set fileformats=dos,mac
|
||||||
:e! XXUxDs
|
:e! XXUxDs
|
||||||
:w! XXtt
|
:w! XXtt61
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDs
|
:bwipe XXUxDs
|
||||||
:e! XXUxMac
|
:e! XXUxMac
|
||||||
:w! XXtt
|
:w! XXtt62
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxMac
|
:bwipe XXUxMac
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt63
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDsMc
|
:bwipe XXUxDsMc
|
||||||
:!cat XX7 >>test.out
|
|
||||||
:"
|
:"
|
||||||
:" try reading and writing with 'fileformats' set to three formats
|
:" try reading and writing with 'fileformats' set to three formats
|
||||||
:set fileformats=unix,dos,mac
|
:set fileformats=unix,dos,mac
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt71
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDsMc
|
:bwipe XXUxDsMc
|
||||||
:!cat XX8 >>test.out
|
|
||||||
:set fileformats=mac,dos,unix
|
:set fileformats=mac,dos,unix
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt81
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDsMc
|
:bwipe XXUxDsMc
|
||||||
:!cat XX9 >>test.out
|
|
||||||
:" try with 'binary' set
|
:" try with 'binary' set
|
||||||
:set fileformats=mac,unix,dos
|
:set fileformats=mac,unix,dos
|
||||||
:set binary
|
:set binary
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt91
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDsMc
|
:bwipe XXUxDsMc
|
||||||
:set fileformats=mac
|
:set fileformats=mac
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt92
|
||||||
:!cat XXtt >>test.out
|
|
||||||
:bwipe XXUxDsMc
|
:bwipe XXUxDsMc
|
||||||
:set fileformats=dos
|
:set fileformats=dos
|
||||||
:e! XXUxDsMc
|
:e! XXUxDsMc
|
||||||
:w! XXtt
|
:w! XXtt93
|
||||||
:!cat XXtt >>test.out
|
:"
|
||||||
:!cat XX10 >>test.out
|
:" Append "END" to each file so that we can see what the last written char was.
|
||||||
:" add a newline at the end
|
:set fileformat=unix nobin
|
||||||
:!cat XXUnix >>test.out
|
ggdGaEND:w >>XXtt01
|
||||||
|
:w >>XXtt02
|
||||||
|
:w >>XXtt11
|
||||||
|
:w >>XXtt12
|
||||||
|
:w >>XXtt13
|
||||||
|
:w >>XXtt21
|
||||||
|
:w >>XXtt22
|
||||||
|
:w >>XXtt23
|
||||||
|
:w >>XXtt31
|
||||||
|
:w >>XXtt32
|
||||||
|
:w >>XXtt33
|
||||||
|
:w >>XXtt41
|
||||||
|
:w >>XXtt42
|
||||||
|
:w >>XXtt43
|
||||||
|
:w >>XXtt51
|
||||||
|
:w >>XXtt52
|
||||||
|
:w >>XXtt53
|
||||||
|
:w >>XXtt61
|
||||||
|
:w >>XXtt62
|
||||||
|
:w >>XXtt63
|
||||||
|
:w >>XXtt71
|
||||||
|
:w >>XXtt81
|
||||||
|
:w >>XXtt91
|
||||||
|
:w >>XXtt92
|
||||||
|
:w >>XXtt93
|
||||||
|
:"
|
||||||
|
:" Concatenate the results.
|
||||||
|
:" Make fileformat of test.out the native fileformat.
|
||||||
|
:" Add a newline at the end.
|
||||||
|
:set binary
|
||||||
|
:e! test.out
|
||||||
|
:$r XXtt01
|
||||||
|
:$r XXtt02
|
||||||
|
Go1:$r XXtt11
|
||||||
|
:$r XXtt12
|
||||||
|
:$r XXtt13
|
||||||
|
Go2:$r XXtt21
|
||||||
|
:$r XXtt22
|
||||||
|
:$r XXtt23
|
||||||
|
Go3:$r XXtt31
|
||||||
|
:$r XXtt32
|
||||||
|
:$r XXtt33
|
||||||
|
Go4:$r XXtt41
|
||||||
|
:$r XXtt42
|
||||||
|
:$r XXtt43
|
||||||
|
Go5:$r XXtt51
|
||||||
|
:$r XXtt52
|
||||||
|
:$r XXtt53
|
||||||
|
Go6:$r XXtt61
|
||||||
|
:$r XXtt62
|
||||||
|
:$r XXtt63
|
||||||
|
Go7:$r XXtt71
|
||||||
|
Go8:$r XXtt81
|
||||||
|
Go9:$r XXtt91
|
||||||
|
:$r XXtt92
|
||||||
|
:$r XXtt93
|
||||||
|
Go10:$r XXUnix
|
||||||
|
:set nobinary ff&
|
||||||
|
:w
|
||||||
:qa!
|
:qa!
|
||||||
ENDTEST
|
ENDTEST
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user