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

  1. Newsgroups: comp.editors
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!news.acns.nwu.edu!nucsrl!ddsw1!dattier
  3. From: dattier@ddsw1.mcs.com (David W. Tamkin)
  4. Subject: Re: How do we include a "|" in vi macros ??
  5. Message-ID: <1992Sep1.052256.19761@ddsw1.mcs.com>
  6. Keywords: vi, macros, special characters
  7. Organization: Contributor Account at ddsw1, Chicago, Illinois  60657
  8. References: <1992Aug31.185656.12365@bnr.ca>
  9. Date: Tue, 1 Sep 1992 05:22:56 GMT
  10. X-Disclaimer:  Material posted in this article is the sole responsibility of
  11.                 the poster and does not represent MCSNet or the system owners.
  12. Lines: 16
  13.  
  14. mschee@bcarh600.bnr.ca (Michael SamChee) wrote in
  15. <1992Aug31.185656.12365@bnr.ca>:
  16.  
  17. | Does anyone know how one can include the pipe character "|" in a vi macro?
  18.  
  19. This ought to be in a vi FAQ.
  20.  
  21. | eg. map ^A :!exec cat tmp | more
  22.  
  23. Quote it with a hard ctrl-V; in other words, type ctrl-V *twice* in front of
  24. the pipe symbol so that one hard ctrl-V stays in the macro definition.
  25.  
  26. map ^A :!exec cat tmp ^V| more
  27.  
  28. David W. Tamkin   Box 59297   Northtown Station, Illinois  60659-0297
  29. dattier@ddsw1.mcs.com    CompuServe: 73720,1570    MCI Mail: 426-1818
  30.