Xref: utzoo comp.bugs.sys5:1328 comp.unix.questions:24235 Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!mit-eddie!media-lab!snorkelwacker!spdcc!merk!alliant!linus!nixbur!nixpbe!peun11!josef From: josef@nixpbe.UUCP (Moellers) Newsgroups: comp.bugs.sys5,comp.unix.questions Subject: Re: Obscure Vi bug? Message-ID: Date: 1 Aug 90 14:42:33 GMT References: <39591@sequent.UUCP> <11626@ingr.com> Sender: news@nixpbe.UUCP Followup-To: comp.bugs.sys5 Lines: 22 In <11626@ingr.com> lester@ingr.com (Lester Bartel) writes: >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 >a macro that will move my cursor to the 70th column (70|) so that I can >split long lines onto shorter similar length lines easily. The problem is, that the bar (|) is a meta character "in the command line" (How do I express what I want to say?). You can write "map a b | map c d" Unfortunately, there is no way of escaping the bar, like escaping the brackets ([]) by prefixing a backslash. I have given up trying to position into the 72nd column to do a line split. I write "map 0 072lBhs^M^[". Unformtunately this completely ignores tabs, but that's life. -- | Josef Moellers | c/o Nixdorf Computer AG | | USA: mollers.pad@nixbur.uucp | Abt. PXD-S14 | | !USA: mollers.pad@nixpbe.uucp | Heinz-Nixdorf-Ring | | Phone: (+49) 5251 104662 | D-4790 Paderborn |