home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / editors / 2099 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  981 b 

  1. Path: sparky!uunet!mcsun!uknet!keele!phd85
  2. From: phd85@seq1.keele.ac.uk (D.H. Holden)
  3. Newsgroups: comp.editors
  4. Subject: VI macros!
  5. Keywords: macros,make life easier.
  6. Message-ID: <3886@keele.keele.ac.uk>
  7. Date: 28 Aug 92 11:39:41 GMT
  8. Organization: University of Keele, England
  9. Lines: 26
  10.  
  11.  
  12.  Hi,
  13.   After seeing a recent article about spell checking
  14.   with VI and a couple of VI macros that do the job
  15.   I thought it might be a good idea if people posted
  16.   there favourite macros, anyway to start the ball
  17.   rolling here are mine:-
  18.  
  19.     Dazzled friends with  this quick and easy way to
  20.     comment out fortran code,
  21.  
  22. "  comment out press Q
  23. map Q ^V^[j0sC^V^[
  24. "
  25.    exit with confidence with this Emacs style file backup
  26.    macro that effortlessly produces file~ before writing
  27.    out the current file, just press ^X
  28. "   backup file copy press ^X
  29. "
  30. map ^X ^V^[:! if ( -e % ) cp % %~^M^[:wq
  31.  
  32.     cheers,
  33.         Dave.
  34.  
  35.     for those new to macros ^character  means 
  36.      press control character
  37.