Xref: utzoo comp.bugs.sys5:478 comp.bugs.4bsd:844 Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!rutgers!netnews.upenn.edu!super.upenn.edu!linc.cis.upenn.edu!brant From: brant@linc.cis.upenn.edu (Brant Cheikes) Newsgroups: comp.bugs.sys5,comp.bugs.4bsd Subject: bug in vi with :ab Message-ID: <5473@super.upenn.edu> Date: 17 Jul 88 04:10:13 GMT Sender: news@super.upenn.edu Reply-To: brant@linc.cis.upenn.edu (Brant Cheikes) Organization: University of Pennsylvania Lines: 16 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. -- Brant Cheikes Department of Computer and Information Science ARPA: brant@linc.cis.upenn.edu, UUCP: {bpa,drexel}!manta!brant