bug in vi with :ab
Evelyn C. Leeper
ecl at mtgzy.att.com
Thu Jul 21 02:44:26 AEST 1988
In article <5473 at super.upenn.edu> brant at linc.cis.upenn.edu (Brant Cheikes) writes:
> Problem: Abbreviations are expanded at all levels of vi. This has been
> reproduced in both System V vi and BSD vi (SVR2 and 4.3BSD respectively).
>
> Reproduce: Run vi, and set an abbreviation, say :ab foo FooBaz. Now insert
> some text, anytime you type "foo", it will be replaced by "FooBaz". This is
> fine. However, you can no longer ever search for the string "foo", nor edit a
> file called "foo"--in all cases, "foo" is expanded first to FooBaz.
> SO, is this a bug? Is there some way to search for abbreviation strings? If
> a bug, is there a fix? It seems to me that abbreviations should ONLY be
> expanded while in input mode.
Whether or not it's a bug is a philsophical question. How to search for the
string "foo" is with "/f.*oo".
Evelyn C. Leeper
201-957-2070
UUCP: att!mtgzy!ecl or ecl at mtgzy.att.com
ARPA: ecl%mtgzy at att.arpa
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list