[GLLUG] vi selective search/replace

Cory Spitz spitzcor@cray.com
Thu, 11 Apr 2002 15:40:23 -0500


On 11 Apr 2002, Edward Glowacki wrote:

> % s/xxx/yyy/c
>
> c is "confirm each occurance"
>

Sweet, I didn't know you could do this.  Thanks for the tip.
Unfortunately, the version of vi that I'm using requires a carriage
return so it's two keystrokes per match.  I guess it's time to do some
hacking!

 -Cory