🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #2852

Re: Paste from macro in VI

#2852
From: Jean-Pierre Radley
Date: Tue, 25 Jun 1991 00:02
11 lines
876 bytes
In article <1991Jun11.183544.514@otago.ac.nz> andrew@otago.ac.nz writes:
>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.

map v :s/\(.*\)/\1\1/^M

where the ^M is inserted by first typing the ^V escape.


Jean-Pierre Radley   Unix in NYC   jpr@jpr.com   jpradley!jpr   CIS: 72160,1341
Technical Details
Message-ID: <1991Jun25.000240.5530@jpradley.jpr.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ncar!hsdndev!rice!uupsi!jpradley!jpr
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!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ncar!hsdndev!rice!uupsi!jpradley!jpr
From: jpr@jpradley.jpr.com (Jean-Pierre Radley)
Newsgroups: comp.editors
Subject: Re: Paste from macro in VI
Message-ID: <1991Jun25.000240.5530@jpradley.jpr.com>
Date: 25 Jun 91 00:02:40 GMT
References: <1991Jun11.183544.514@otago.ac.nz>
Organization: Unix in NYC
Lines: 11