home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!keele!phd85
- From: phd85@seq1.keele.ac.uk (D.H. Holden)
- Newsgroups: comp.editors
- Subject: VI macros!
- Keywords: macros,make life easier.
- Message-ID: <3886@keele.keele.ac.uk>
- Date: 28 Aug 92 11:39:41 GMT
- Organization: University of Keele, England
- Lines: 26
-
-
- Hi,
- After seeing a recent article about spell checking
- with VI and a couple of VI macros that do the job
- I thought it might be a good idea if people posted
- there favourite macros, anyway to start the ball
- rolling here are mine:-
-
- Dazzled friends with this quick and easy way to
- comment out fortran code,
-
- " comment out press Q
- map Q ^V^[j0sC^V^[
- "
- exit with confidence with this Emacs style file backup
- macro that effortlessly produces file~ before writing
- out the current file, just press ^X
- " backup file copy press ^X
- "
- map ^X ^V^[:! if ( -e % ) cp % %~^M^[:wq
-
- cheers,
- Dave.
-
- for those new to macros ^character means
- press control character
-