🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2829

Re: VI: Positioning the cursor ("|") from within a macro doesn't work.

#2829
From: Alvin "the Chipmunk" Sylvain
Date: Sun, 16 Jun 1991 06:41
35 lines
2255 bytes
Written in article <14977@ulysses.att.com>
    by wmb@ulysses.att.com (W M Brelsford):

: In article <1501@cacilj.UUCP>, jurgen@cacilj.UUCP (Jurgen Heymann) writes:
: > I am trying to position the cursor on a specific column using a :map macro.
: > When I enter the command string interactively everything works fine. When I
: > define it as a :map macro however, the position command is not executed and
: > the macro execution stops there at the "|". I also tried "\|" but that didn't
: > help either. What can I do?
: 
: "|" needs to be protected with "^V" (Ctrl-V).
: 
: ..(macro to join two text lines, then split before column 77):
: >	:map ^W J77|bi^M^[
: 
: A minor modification:
: 
: 	:map ^W J77^V|BBf r^M
: 
: insures that no trailing blanks are left on the split line.

At the risk of calling forth an old Usenet cliche ...

"Bzzzzzt!  We're sorry, but that's the wrong answer!"

I know.  I tried it in posting this article.  Control V does *not* quote
the "pipe" character (at least not on an Ultix VAX).
--
Alvin ===== asylvain@felix.UUCP ===== hplabs!felix!asylvain ===== 
"hplabs!felix!asylvain"@uunet.uu.net
(I always try to respond to mail, if possible.  If you don't hear back 
from me, try changing "hplabs" to "ccicpg," "spsd," or "lawnet.")
DISCLAIMER: It's all in fun, folks, no flames intended.  Any similarity
between my opinion and that of my employer is purely coincidental and
sufficient reason to change my opinion, although I'll still be right.
Technical Details
Message-ID: <165175@felix.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!ucsd!mvb.saic.com!unogate!unocal!genisco!arcturus!felix!asylvain@felix.UUCP
References: <1501@cacilj.UUCP> <14977@ulysses.att.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!ucsd!mvb.saic.com!unogate!unocal!genisco!arcturus!felix!asylvain@felix.UUCP
From: asylvain@felix.UUCP (Alvin "the Chipmunk" Sylvain)
Newsgroups: comp.editors
Subject: Re: VI: Positioning the cursor ("|") from within a macro doesn't work.
Keywords: vi cursor
Message-ID: <165175@felix.UUCP>
Date: 16 Jun 91 06:41:46 GMT
References: <1501@cacilj.UUCP> <14977@ulysses.att.com>
Sender: daemon@felix.UUCP
Reply-To: asylvain@felix.UUCP (Alvin "the Chipmunk" Sylvain)
Distribution: usa
Organization: Foundation for the Increased Wealth of Chipmunks                                Send in your pledges now! (Visa/Mastercard accepted)
Lines: 35