Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!uunet!mcsun!hp4nl!philapd!ssp9!dolf From: dolf@idca.tds.PHILIPS.nl (Dolf Grunbauer) Newsgroups: comp.editors Subject: Re: Vi macro strangeness Keywords: vi macro lowercase Message-ID: <526@ssp9.idca.tds.philips.nl> Date: 16 Nov 90 15:54:10 GMT References: <9400@b11.ingr.com> Reply-To: dolf@idca.tds.philips.nl (Dolf Grunbauer) Organization: Philips Information Systems, Apeldoorn, The Netherlands Lines: 20 In article <9400@b11.ingr.com> brad@b11.ingr.com (Brad Maxwell) writes: >The macro starts something like >map! ^B ^]bywPb....(so on and so on) > >which is supposed to back up, yank the word, put it in front of itself, >and back up to the beginning again ( hello --> hello hello ). > >Anyway, this much of the macro gives ( hello --> bhello hello ). The >P command inserts the 'b' onto the line itself. The keystrokes work >fine by themselves, and the macro was posted by someone who really >uses it. What causes this and how do I fix it? Some versions of 'vi' don't support Yanks (Y, yy etc) and Puts (p, P) inside macro's. Sometimes you get a warning, sometimes you get someting unpredictable. My vi has the same problem :-( -- _ _ / U | Dolf Grunbauer Tel: +31 55 433233 Internet dolf@idca.tds.philips.nl /__'< Philips Information Systems UUCP ...!mcsun!philapd!dolf 88 |_\ If you are granted one wish do you know what to wish for right now ?