Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!tellab5!vpnet!dattier From: dattier@vpnet.chi.il.us (David W. Tamkin) Newsgroups: comp.editors Subject: Re: Vi map help needed Message-ID: <1991Mar12.005648.7081@vpnet.chi.il.us> Date: 12 Mar 91 00:56:48 GMT References: <1991Mar5.052326.12313@cs.ucla.edu> <1991Mar06.004617.19066@vpnet.chi.il.us> <1991Mar9.053949.9736@cs.ucla.edu> Organization: VPnet Public Access Unix, Villa Park, Illinois 60181-2206 Lines: 27 gast@lanai.cs.ucla.edu wrote in <1991Mar9.053949.9736@cs.ucla.edu>: | I used X because it frequently means pick any value you want. Forgive me. Yes, I understood, but remember, I was aiming to explain it to someone who might have been a beginner. | I interpreted your posting to say that the user could use 5 or 7 ^V's and | it would not make a difference. My point was that it probably would. (I | don't know the precise implementation being used). I tried it on two sites I call: on both, five or seven ^V presses (two or three caret+V pairs on the screen) worked and one or three gave the "no previous regular expression" error that the original poster complained about. As for my unexpectedly user-friendly notation, I was carrying through the original poster's method. Moreover, to show ^M, no matter how well people know that it means ctrl-M and not caret+M, always leaves the question of whether you meant to press ctrl-M or to press ctrl-V ctrl-M so that a ctrl-M is entered. (The same goes for ^V and ^[.) Yes, :%!tr -d '\015' is a better way to solve the problem (assuming that the only CR's in the file will be the ones in the EOL's). So are dtou and lef, if you have them (or either). David Tamkin PO Box 7002 Des Plaines IL 60018-7002 dattier@vpnet.chi.il.us GEnie:D.W.TAMKIN CIS:73720,1570 MCIMail:426-1818 708 518 6769 312 693 0591