[GLLUG] vi selective search/replace

Edward Glowacki glowack2@msu.edu
11 Apr 2002 17:33:30 -0300


On Thu, 2002-04-11 at 17:13, Charles Williams wrote:
> Yeh that's the system I use now. That works fine by me actually. Sometimes I
> wonder if there's a different undocumented way to selectively
> search/replace. Ok I can live with this. 
> Thanks,
> Chuck Williams

% s/xxx/yyy/c

% is "whole file"
s// is search and replace
xxx is what you want to find
yyy is what you want to replace it with
c is "confirm each occurance"


-- 
Edward Glowacki				glowack2@msu.edu
GLLUG Peon  				http://www.gllug.org
Imagination is the one weapon in the war against reality.
                -- Jules de Gaultier