Xref: utzoo comp.bugs.sys5:482 comp.bugs.4bsd:851 Path: utzoo!utgpu!water!watmath!clyde!att!mtuxo!mtgzy!ecl From: ecl@mtgzy.att.com (Evelyn C. Leeper) Newsgroups: comp.bugs.sys5,comp.bugs.4bsd Subject: Re: bug in vi with :ab Message-ID: <4015@mtgzy.att.com> Date: 20 Jul 88 16:44:26 GMT References: <5473@super.upenn.edu> Reply-To: ecl@mtgzy.UUCP (Evelyn C. Leeper) Organization: AT&T Information Systems, Middletown NJ Lines: 20 In article <5473@super.upenn.edu> brant@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@mtgzy.att.com ARPA: ecl%mtgzy@att.arpa