Article View: comp.bugs.sys5
Article #221Re: Obscure Vi bug?
From: David C. Miller
Date: Sun, 05 Aug 1990 01:55
Date: Sun, 05 Aug 1990 01:55
24 lines
1288 bytes
1288 bytes
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.649521753@peun11> 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
Technical Details
Message-ID:
<276@moria.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!tsdiag!moria!dcmReferences:
<39591@sequent.UUCP> <11626@ingr.com> <josef.649521753@peun11>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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> <josef.649521753@peun11> Organization: The Black Chasm Lines: 24