Path: 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 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