Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
test30.in
Package: vim53src.zip [view]
Upload User: gddssl
Upload Date: 2007-01-06
Package Size: 1003k
Code Size: 3k
Category:
Editor
Development Platform:
DOS
- Test for a lot of variations of the 'fileformats' option
- STARTTEST
- :" first write three test files, one in each format
- :set fileformat=unix
- :set fileformats=
- :/^unix/;/eof/-1w! XXUnix
- :/^dos/;/eof/-1w! XXDos
- :set bin noeol
- :$w! XXMac
- :set nobin eol
- :bdel XXUnix XXDos XXMac
- :" create mixed format files
- :!cat XXUnix XXDos >XXUxDs
- :!cat XXUnix XXMac >XXUxMac
- :!cat XXDos XXMac >XXDosMac
- :!cat XXUnix XXDos XXMac >XXUxDsMc
- :"
- :" try reading and writing with 'fileformats' empty
- :set fileformat=unix
- :e! XXUnix
- :w! test.out
- :e! XXDos
- :w! XXtt
- :!cat XXtt >>test.out
- :e! XXMac
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUnix XXDos XXMac
- :set fileformat=dos
- :e! XXUnix
- :w! XXtt
- :!cat XXtt >>test.out
- :e! XXDos
- :w! XXtt
- :!cat XXtt >>test.out
- :e! XXMac
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUnix XXDos XXMac
- :set fileformat=mac
- :e! XXUnix
- :w! XXtt
- :!cat XXtt >>test.out
- :e! XXDos
- :w! XXtt
- :!cat XXtt >>test.out
- :e! XXMac
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUnix XXDos XXMac
- :"
- :" try reading and writing with 'fileformats' set to one format
- :set fileformats=unix
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDsMc
- :set fileformats=dos
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDsMc
- :set fileformats=mac
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDsMc
- :"
- :" try reading and writing with 'fileformats' set to two formats
- :set fileformats=unix,dos
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDsMc
- :e! XXUxMac
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxMac
- :e! XXDosMac
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXDosMac
- :set fileformats=unix,mac
- :e! XXUxDs
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDs
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDsMc
- :e! XXDosMac
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXDosMac
- :set fileformats=dos,mac
- :e! XXUxDs
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDs
- :e! XXUxMac
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxMac
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDsMc
- :"
- :" try reading and writing with 'fileformats' set to three formats
- :set fileformats=unix,dos,mac
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDsMc
- :set fileformats=mac,dos,unix
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDsMc
- :" try with 'binary' set
- :set fileformats=mac,unix,dos
- :set binary
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDsMc
- :set fileformats=mac
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :bdel XXUxDsMc
- :set fileformats=dos
- :e! XXUxDsMc
- :w! XXtt
- :!cat XXtt >>test.out
- :" add a newline at the end
- :!cat XXUnix >>test.out
- :!rm -f XXtt XXUnix XXDos XXMac XXUxDs XXUxMac XXDosMac XXUxDsMc
- :qa!
- ENDTEST
- unix
- unix
- eof
- dos
- dos
- eof
- mac mac