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
test8.in
Package: vim53src.zip [view]
Upload User: gddssl
Upload Date: 2007-01-06
Package Size: 1003k
Code Size: 1k
Category:
Editor
Development Platform:
DOS
- Test for BufWritePre autocommand that deletes or unloads the buffer.
- STARTTEST
- :au BufWritePre Xxx1 bunload
- :au BufWritePre Xxx2 bdel
- /start of
- A1:.,/end of/w! Xxx1 " write test file Xxx1
- $r2:.,/end of/w! Xxx2 " write test file Xxx2
- :e! Xxx1 " start editing Xxx1
- :w " write it, will unload it and give an error msg
- :w! test.out " Write contents of this file
- :e! Xxx2 " start editing Xxx2
- :bdel test.out " remove test.out from the buffer list
- :w " write it, will delete the buffer and give an error msg
- :w >>test.out " Append contents of this file
- :!rm Xxx1 Xxx2
- :qa!
- ENDTEST
- start of test file Xxx
- this is a test
- this is a test
- this is a test
- this is a test
- end of test file Xxx