home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.editors
- Path: sparky!uunet!murphy!jpradley!jpr
- From: jpr@jpradley.jpr.com (Jean-Pierre Radley)
- Subject: Re: How do we include a "|" in vi macros ??
- Organization: Unix in NYC
- Date: Thu, 03 Sep 1992 02:41:14 GMT
- Message-ID: <1992Sep03.024114.6946@jpradley.jpr.com>
- Keywords: vi, macros, special characters
- References: <1992Aug31.185656.12365@bnr.ca>
- Lines: 17
-
- In article <1992Aug31.185656.12365@bnr.ca> mschee@bcarh600.bnr.ca (Michael SamChee) writes:
- >Does anyone know how one can include the pipe character "|" in a vi macro?
- >
- >eg. map ^A :!exec cat tmp | more
- >
- >Nothing I've tried seems to work.
-
-
- The '|' is used by ex as a command separator.
-
- Many shells maintain the obsolete symbol for piping, the '^'.
-
- So try
- map ^A :! do_this ^ do_that ^M
-
- --
- Jean-Pierre Radley Unix in NYC jpr@jpr.com jpradley!jpr CIS: 72160,1341
-