🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2825

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

#2825
From: David W. Tamkin
Date: Fri, 14 Jun 1991 22:41
24 lines
1467 bytes
wmb@ulysses.att.com (W M Brelsford) wrote in <14977@ulysses.att.com>:

| "|" needs to be protected with "^V" (Ctrl-V).

It needs to be protected with a fully entered ^V, which means typing ctrl-V
twice when you enter the :map command (either during a session or into your
.exrc) so that one ^V sticks.

| ..(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

                J77^V|Bhr^M

will do the same thing a little more efficiently.  It will keep every line
down to seventy-four or fewer columns.  Note that it none of the three does
what the orignal poster seems to want if the two joined lines together take
up seventy-four or fewer columns.

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
Technical Details
Message-ID: <1991Jun14.224137.21347@vpnet.chi.il.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucselx!bionet!apple!motcsd!mcdcup!mcdchg!tellab5!vpnet!dattier
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!rutgers!ucsd!ucselx!bionet!apple!motcsd!mcdcup!mcdchg!tellab5!vpnet!dattier
From: dattier@vpnet.chi.il.us (David W. Tamkin)
Newsgroups: comp.editors
Subject: Re: VI: Positioning the cursor ("|") from within a macro doesn't work.
Keywords: vi cursor
Message-ID: <1991Jun14.224137.21347@vpnet.chi.il.us>
Date: 14 Jun 91 22:41:37 GMT
References: <1501@cacilj.UUCP> <14977@ulysses.att.com>
Distribution: usa
Organization: VPnet Public Access Unix, Villa Park, Illinois  60181-2206
Lines: 24