Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hao!husc6!sri-unix!sri-spam!mordor!lll-tis!ptsfa!ihnp4!occrsh!occrsh.ATT.COM!tiger.UUCP!authorplaceholder From: rjd@tiger.UUCP Newsgroups: comp.unix.wizards Subject: Re: help w/ a vi map Message-ID: <142700004@tiger.UUCP> Date: Thu, 18-Jun-87 10:57:00 EDT Article-I.D.: tiger.142700004 Posted: Thu Jun 18 10:57:00 1987 Date-Received: Mon, 22-Jun-87 03:39:16 EDT References: <7881@brl-adm.ARPA> Lines: 29 Nf-ID: #R:brl-adm.ARPA:-788100:tiger.UUCP:142700004:000:1450 Nf-From: tiger.UUCP!rjd Jun 18 09:57:00 1987 > on my way. (This worked fine.) I decided to create a map for this function > by doing :map ^R :1,$s/_^H//g^M - this worked SORT OF, but NOT as I would > have expected. (Control characters and carriage return are escaped w/ ^V.) > > The puzzling sequence follows: (starting w/ file full of _^H's) > 1) Issue the command longhand (works) > 2) Undo the command ('u') > 3) Issue the map command - ^R (works) > 4) Undo the command, and quit the file (no changes) > 5) BTW the map setup is in my EXINIT variable > 6) 'vi' the file again and immediately issue the map command. > 7) Get the error: "No previous regular expression" > > - Paul Groff I try to always use ununsed vi commands for my map's. This probably is not the cause for your problem, but it could have some effect. From looking in the various manuals on vi around, I once made a list of unused vi commands by noting all letters that I could not find a command use for and have it posted in my office at work. For those who are interested, the unused vi single letter commands *I* have are: g q v K V \ _ ^A ^C ^K ^O ^S ^X ^\ ^_ * (control chars denoted by ^) (did not say it was possible to type each, just what they were). The ^R you mention is in my manual for a command on "dumb" temrinals to refresh lines, so maybe there is a confusing conflict. BTW-Any corrections to my list are welcome. Randy UUCP:(ihnp4!)3b2fst!randy