Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!hplabs!hpl-opus!steinbac From: steinbac@hpl-opus.HP.COM (Gunter Steinbach) Newsgroups: comp.unix.questions Subject: Re: Re: Obscure Vi bug? Message-ID: <63720022@hpl-opus.HP.COM> Date: 31 Jul 90 15:36:25 GMT References: <846@mwtech.UUCP> Organization: HP Labs, High Speed Electronics Dept., Palo Alto, CA Lines: 13 > / hpl-opus:comp.unix.questions / lester@ingr.com (Lester Bartel) / > 8:12 am Jul 30, 1990 / > While we are on the subject of vi macro bugs, I have one to add. > I cannot seem to make the | (pipe) work in a macro. What I want is That one works for me (HP-UX 7.0) if I precede the | with a ^V. Try this: :map \ 70^V| where the ^V gets entered as "^V^V". The pipe is a command delimiter in ex (as e.g. in ":w|n"), therefore it needs escaping. Guenter Steinbach gunter_steinbach@hplabs.hp.com