Path: utzoo!utgpu!watserv1!watmath!att!tsdiag!moria!dcm From: dcm@moria.UUCP (David C. Miller) Newsgroups: comp.bugs.sys5 Subject: Re: Obscure Vi bug? Message-ID: <276@moria.UUCP> Date: 5 Aug 90 01:55:11 GMT References: <39591@sequent.UUCP> <11626@ingr.com> Organization: The Black Chasm Lines: 24 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. In article josef@nixpbe.UUCP (Moellers) writes: |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. There is a way to do this, but it is not at all intuitive. What you want to write is "map a 70^V|". The ^V is actually an escaped ^V, so you need to type 2 ^V's before the '|'. David -- David C. Miller ka2qhd!moria!dcm@tsdiag.ocpt.ccur.com / uunet!moria!dcm