Re: VI Issue

2006-05-21 Thread Michael JasonSmith
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 :)

Re: VI Issue

2006-05-21 Thread Nick Rout
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

Re: VI Issue

2006-05-20 Thread rex
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

Re: VI Issue

2006-05-20 Thread Hadley Rich
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

Re: VI Issue

2006-05-20 Thread Christopher Sawtell
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

Re: VI Issue

2006-05-20 Thread Steve Holdoway
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

Re: VI Issue

2006-05-20 Thread Hadley Rich
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;

VI Issue

2006-05-20 Thread Andy George
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.