home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / editors / 2121 < prev    next >
Encoding:
Text File  |  1992-08-31  |  873 b   |  33 lines

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!cs.utexas.edu!asuvax!ennews!enuxhb.eas.asu.edu!sridhar
  3. From: sridhar@enuxhb.eas.asu.edu (Sridhar Venkataraman)
  4. Subject: Re: How do we include a "|" in vi macros ??
  5. Message-ID: <1992Aug31.215226.6583@ennews.eas.asu.edu>
  6. Sender: news@ennews.eas.asu.edu (USENET News System)
  7. Organization: Arizona State University, Tempe AZ
  8. References: <1992Aug31.185656.12365@bnr.ca>
  9. Date: Mon, 31 Aug 1992 21:52:26 GMT
  10. Lines: 21
  11.  
  12. mschee@bcarh600.bnr.ca (Michael SamChee)
  13. writes on comp.editors:
  14.  
  15. )Does anyone know how one can include the pipe character "|" in a vi macro?
  16. )
  17. )eg. map ^A :!exec cat tmp | more
  18.  
  19. Type as is in vi (colon mode) or in your .exrc:
  20.  
  21. map ^V^A :!exec cat tmp ^V^V| more
  22.  
  23. ^V,^A - Control-V and Control-A respectively.
  24.  
  25. )Nothing I've tried seems to work.
  26. )Hmm.
  27. )
  28. )Thanxs,
  29. )Michael.
  30.  
  31. Sridhar.
  32.  
  33.