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