On Sunday 21 May 2006 15:18, Andy George wrote:
> Lazy question!
>
> ...in VI the editor-of-the-gods...
>
> How do you do a word find/replace?  I could google this, and imagine I'd
> find an answer, but then subscription to this list becomes redundant,
> and I might as well fly solo for as long as google has all the answers
> to everything.
In modern vim:-
:1,$s/dot/dog/g

In old vi:-
:1,$s/dot/s//dog/g

Changes every occurrence of dot to dog.

There are _lots_, i.e. too many, of vi/vim tutorials all over the net.
For starters.
http://rute.2038bug.com/node9.html.gz#SECTION00910000000000000000

There is also a very good built-in tutorial, press :h

-- 
CS

Reply via email to