>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.

It works on the current line.

>Anyone got any idea of what's going on?

Try

g/susank/s//susanr/g

or use sed.
--
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