Do a [CTL]+g to see how many lines you have. Then issue the following
command (using 139 lines as an example):

:1,139s/susank/susanr/gc

Should do the trick nicely.

Cheers,
        Craige.

Andrew Langton wrote:
> 
> Silly question regarding vi:
> 
> I want to replace all occurences of susank with susanr in my aliases file,
> but the following syntax fails to find any matches:
> 
> :s/susank/susanr/g
> 
> Vim reports "Pattern not found: susank".  According to the doco, this should
> work.  /susank finds lots of matches.
> 
> Anyone got any idea of what's going on?
> 
> Andrew Langton.
> --
> SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> To unsubscribe send email to [EMAIL PROTECTED] with
> unsubscribe in the text
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to