From: Gavin Sinclair Date: 2004-08-17T16:09:00+09:00 Subject: Re: About ruvi On Tuesday, August 17, 2004, 4:54:42 PM, Alexander wrote: > On Tue, Aug 17, 2004 at 12:22:53PM +0900, Gavin Sinclair wrote: >> _MY_ favourite is this: >> >> :g/abc/normal 3WdWA def >> >> (For exvery line that contains 'abc', delete the fourth word and >> append ' def' to the line.) > normal really is going to change the way i use vi. i can't believe i > hadn't heard of this earlier! finally "ed" becomes more useful than > a non confirming searching replace :) (reason that i haven't yet > done a search replace implemention is because i actually use > /blahcwblub\en.n.n.n.n.n.n. i can't stand nonconfirming replace :)) If you want conforming replace, you might try adding the 'c' flag to the search command :) For example :%s/foo/bar/gc That means you can use regexen as well, which the cw-n-. troika doesn't give you. Gavin