Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!wuarchive!rex!ukma!seismo!uunet!ingr!b11!brad From: brad@b11.ingr.com (Brad Maxwell) Newsgroups: comp.editors Subject: Vi macro strangeness Keywords: vi macro lowercase Message-ID: <9400@b11.ingr.com> Date: 15 Nov 90 17:56:21 GMT Organization: Intergraph Corp. Huntsville, AL Lines: 19 I was playing with the recent macro to lowercase or uppercase the last word typed and found something strange in my vi. 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? Any ideers are appreciated, Brad Maxwell