🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2791

Re: Paste from macro in VI

#2791
From: David W. Tamkin
Date: Tue, 11 Jun 1991 15:54
20 lines
1519 bytes
andrew@otago.ac.nz wrote in <1991Jun11.183544.514@otago.ac.nz>:

| For a long time I have been trying to find a way around an anoying feature of
| vi.  What I want to do is to create a macro (with :map) that will copy the
| contents of this line onto the end of itself.

| This can be done outside a macro with YPJ  Withing a macro, I get the message
| "Cannot put inside global/macro".  I'm runnin on a SUN3/60 with SUNOS that
| announces itself as "Sun UNX 4.2 Release 3.5" and the version of vi that comes
| with it.

It's a cheap workaround, but map a key to :s/.*/&&/^M (you'll need to type
ctrl-V ctrl-M, of course, to save it in a mapping).  Actually, YPJ puts a
space between the two appearances, so maybe you want :s/.*/& &/^M instead.

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: <1991Jun11.155442.4722@vpnet.chi.il.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!nucsrl!tellab5!vpnet!dattier
References: <1991Jun11.183544.514@otago.ac.nz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!casbah.acns.nwu.edu!nucsrl!tellab5!vpnet!dattier
From: dattier@vpnet.chi.il.us (David W. Tamkin)
Newsgroups: comp.editors
Subject: Re: Paste from macro in VI
Message-ID: <1991Jun11.155442.4722@vpnet.chi.il.us>
Date: 11 Jun 91 15:54:42 GMT
References: <1991Jun11.183544.514@otago.ac.nz>
Organization: VPnet Public Access Unix, Villa Park, Illinois  60181-2206
Lines: 20