Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!dimacs.rutgers.edu!rutgers!uwm.edu!spool2.mu.edu!uunet!ogicse!plains!rajkumar@plains.NoDak.edu From: rajkumar@plains.NoDak.edu (A. Joseph Rajkumar) Newsgroups: comp.editors Subject: How do a write a specific macro in vi Message-ID: <7829@plains.NoDak.edu> Date: 29 Jan 91 19:51:31 GMT Organization: North Dakota State University, Fargo Lines: 21 Hi Using vi, I want to be able to do the following:- I need to globally remove all control-H in a file, and also all the underscores (_) in a file. I used a map to map a "K" like this "map D :1,$ s///g" in my .exrc file, but then when I try to edit a file which has these control-H, I am not able to do it. I run into this problem when I use "refer" to include references into a document. Also when I use the correct syntax for refer like this:- refer -e -l4,2 database filename I am getting the references included in the file as [BERN89a] etc, when there is only on BERN reference. It is supposed to include the suffiz 'a' only when there are multiple BERN89's. Thanks Joseph Rajkumar email:- rajkumar@plains.NoDak.edu