Path: utzoo!utgpu!water!watmath!clyde!rutgers!ucla-cs!zen!ucbvax!hplabs!hpda!hpcupt1!hpirs!wk From: wk@hpirs.HP.COM (Wayne Krone) Newsgroups: comp.unix.wizards Subject: Re: How can you put a `|' in a vi map? Message-ID: <4760009@hpirs.HP.COM> Date: 7 Jan 88 00:19:55 GMT References: <521@srs.UUCP> Organization: Hewlett Packard, Cupertino Lines: 18 > Try as I may, I can't seem to find a way to put a pipe symbol (`|') into > a vi (ex) map. For example, in vi try: > > :map q i|^[ > > Where '^[' is entered via ^V then the escape key. Vi says something > like "Unknown command character '^['". You can try escaping the `|' > with a backslash and get different but equally useless results. Seems > that I've tried everything (doubling the `|', backslash, etc.). You have to quote `|' with ^V (ctrl-V). Try: :map q i^V|^[ where '^V' is entered via two consecutive ctrl-V's. Wayne Krone Hewlett-Packard