On Sun, 2006-05-21 at 15:44 +1200, Christopher Sawtell wrote:
> In modern vim:-
> :1,$s/dot/dog/g
Roughly the same command is used in sed, ed, and QED :)
On Sun, May 21, 2006 3:18 pm, 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
Steve Holdoway wrote:
On Sun, 21 May 2006 15:25:04 +1200
Hadley Rich <[EMAIL PROTECTED]> wrote:
On Sunday 21 May 2006 15:18, Andy George wrote:
...in VI the editor-of-the-gods...
How do you do a word find/replace?
:%s/find/replace/g
Will replace find with replace in the whol
On Sunday 21 May 2006 15:38, Steve Holdoway wrote:
> ... it'll replace every occurrence of the search string with the replaced
> string, which may be more than you want. For example, %s/Cant/Can/g will
> also convert Canterbury to Canerbury.
>
> If you want to check each one, use /search to find th
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
On Sun, 21 May 2006 15:25:04 +1200
Hadley Rich <[EMAIL PROTECTED]> wrote:
> On Sunday 21 May 2006 15:18, Andy George wrote:
> > ...in VI the editor-of-the-gods...
> >
> > How do you do a word find/replace?
>
> :%s/find/replace/g
>
> Will replace find with replace in the whole document (%) and be
On Sunday 21 May 2006 15:18, Andy George wrote:
> ...in VI the editor-of-the-gods...
>
> How do you do a word find/replace?
:%s/find/replace/g
Will replace find with replace in the whole document (%) and be greedy (g)
i.e. replace more than one occurrence on a line.
Of course you are correct;
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.