> > introduced with search and replace that's done incorrectly or that
> > doesn't handle all cases:
> >
> > int foo;
> > int bar;
> > int foobar;
> > int blahbar;
> >
> > s&r foo -> blah
> >
> > suddenly all your foo are blah, which is what you want, but now your
> > foobar are blahbar, which is NOT what you wanted.
Is this not a symptom of using a poor text editor?
I mean, surely, if I'm not careful enough to use the "exact word matching"
capability of my editor of choice, or worse I was foolish enough to accept
an editor without such a thing, then I have no-one to blame but myself.
:set noic
:s/\<foo\>/blah/
... will not touch foobar.
Let the vi-emacs wars begin again!!
:-)
|