🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2833

Re: VI: Positioning the cursor ("|") DOES work!!

#2833
From: David W. Tamkin
Date: Tue, 18 Jun 1991 00:04
23 lines
1557 bytes
asylvain@felix.UUCP (Alvin "the Chipmunk" Sylvain) wrote in <165192@felix.UUCP>:

|     a           enter append mode, so you can add ...
|     ^V^M        ... a carriage return, quoted of course with ^V.
|     J           Join the next line to the end of the new next line.

You must have some really strange vi.  After a^V^M you should still be in
append mode and the J should be taken as additional text to add.  It
shouldn't work as a join command unless you have ^V^[ in the mapping to
return to command mode.

In my own macro for it, I don't bother with hyphens but look only for spaces.
That allows me to use this:

:map whateverkeyyouwant 77^V^V|F r^V^M

The space doesn't seem to need quoting.

David Tamkin  PO Box 7002  Des Plaines IL  60018-7002  dattier@vpnet.chi.il.us
GEnie:D.W.TAMKIN  CIS:73720,1570  MCIMail:426-1818  708 518 6769  312 693 0591

"Parker Lewis Can't Lose" mailing list:
 flamingo-request@esd.sgi.com (reflector)    flamingo-request@mcs.com (digest)
Technical Details
Message-ID: <1991Jun18.000454.6342@vpnet.chi.il.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!caen!zaphod.mps.ohio-state.edu!samsung!uunet!tellab5!vpnet!dattier
References: <14977@ulysses.att.com> <165175@felix.UUCP> <165192@felix.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!caen!zaphod.mps.ohio-state.edu!samsung!uunet!tellab5!vpnet!dattier
From: dattier@vpnet.chi.il.us (David W. Tamkin)
Newsgroups: comp.editors
Subject: Re: VI: Positioning the cursor ("|") DOES work!!
Keywords: vi cursor
Message-ID: <1991Jun18.000454.6342@vpnet.chi.il.us>
Date: 18 Jun 91 00:04:54 GMT
References: <14977@ulysses.att.com> <165175@felix.UUCP> <165192@felix.UUCP>
Distribution: usa
Organization: VPnet Public Access Unix, Villa Park, Illinois  60181-2206
Lines: 23