VI substitute command (and command summary)
Jeffrey Lawrence Haferman
jlhaferman at l_cae05.icaen.uiowa.edu
Fri Mar 9 05:00:19 AEST 1990
I've forgotten the exact syntax for the substitute command.
What I've been doing is
:1,$s/old-sting/new-string/
To change old-string to new-string from lines 1 to $ (last line).
This just changes the first occurence of old-string on each line.
How do I handle multiple occurences?
Also, does anyone have a nice vi command summary? Most that I've
seen just give the basics. I don't think I've ever seen substitute
included (since I guess it is actually an ex command).
Please e-mail if possible.
Thanks in advance.
Jeff Haferman internet: jlhaferman at icaen.uiowa.edu
Department of Mechanical Engineering
University of Iowa
Iowa City IA 52240
More information about the Comp.unix.questions
mailing list