does vi have a search/deletion macro???

Peter Morreale morreale at bierstadt.ucar.edu
Fri Sep 8 04:27:24 AEST 1989


 
Hi!
I'm looking for a functionality that perhaps vi doesn't have.

What I want to do is actually two-fold. 

   1) How can I search for a string and have all occurrences show 
      on my screen (aside from doing a :!grep -i <string> <filename> )
      because then I want to....

   2) delete all lines which match the above mentioned search.

Does vi have macro capability (w/o changing the source or writing C
stuff,  that's beyond me)?  Do I need new glasses to read TFM? 

Can I combine some standard vi stuff and map it to a key? (I can do that ;-)  )

Thanx for any and all hep.  ("hep" is southern for "help")
-PWM
-----------------
Peter W. Morreale                   
Nat'l Center for Atmos. Research, Scientific Computing Division       
morreale at ncar.ucar.edu  (303) 497-1293



More information about the Comp.unix.questions mailing list