Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!hp4nl!philapd!ssp1!dolf From: dolf@idca.tds.PHILIPS.nl (Dolf Grunbauer) Newsgroups: comp.editors Subject: vi command does not work in macro Message-ID: <273@ssp1.idca.tds.philips.nl> Date: 13 Oct 89 10:52:02 GMT Organization: Philips Telecommunication and Data Systems, The Netherlands Lines: 17 I wanted to duplicate a word somewhere in the middle of a sentence. The command I used was: df Pp (There is a space between the 'f' and 'P') After having noticed I required a lot of these duplications, I defined: :map v df Pp Invoking the macro `v' did not do the job: the word is only preceeded by a `p', leaving the cursor at the space after the involved word. Apparently the word is deleted (by the `df '), put back (by the `P') and the `p' is inserted in the front. This really puzzles me. Why is p inserted (there is no `aAiI') and why in the front (at the back seems a more logical place as that is where the cursor is) ? -- Dolf Grunbauer Tel: +31 55 432764 Internet dolf@idca.tds.philips.nl Philips Telecommunication and Data Systems UUCP ....!mcvax!philapd!dolf Dept. SSP, P.O. Box 245, 7300 AE Apeldoorn, The Netherlands