Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 exptools 1/6/84; site ih1ap.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxl!ihnp4!ih1ap!kav
From: kav@ih1ap.UUCP (Kurt Vangsness)
Newsgroups: net.unix
Subject: Re:  vi: function keys; termcap: k0-k9; terminfo
Message-ID: <292@ih1ap.UUCP>
Date: Fri, 10-Feb-84 09:36:16 EST
Article-I.D.: ih1ap.292
Posted: Fri Feb 10 09:36:16 1984
Date-Received: Sat, 11-Feb-84 08:12:14 EST
References: <16413@sri-arpa.UUCP> <4999@umcp-cs.UUCP> <373@sequent.UUCP>
Organization: AT&T Bell Labs, Naperville, IL
Lines: 38

:ab foo foo doesn't cause the bug. Here is a re-posting of an
article that described the bug:

----------
From ihnp4!houxm!mhuxa!mhuxi!mhuxt!eagle!harpo!seismo!rlgvax!cvl!umcp-cs!chris Wed Dec 31 18:00:00 1969
Relay-Version: version B 2.10 5/16/83; site ih1ap.UUCP
Path: ih1ap!ihnp4!houxm!mhuxa!mhuxi!mhuxt!eagle!harpo!seismo!rlgvax!cvl!umcp-cs!chris
From: chris@umcp-cs.UUCP
Newsgroups: net.bugs.4bsd,net.unix-wizards
Subject: Re: Bug_in_vi_map_funtion
Message-ID: <132@umcp-cs.UUCP>
Date: Thu, 9-Jun-83 07:17:30 CDT
Article-I.D.: umcp-cs.132
Posted: Thu Jun  9 07:17:30 1983
Date-Received: Thu, 9-Jun-83 16:19:27 CDT
References: qubix.301
Lines: 15

Speaking of VI map bugs, here's a cute bug that's very similar.  Type

	:ab bar bar-bell

then  (in  insert  mode)  type 'bar'.  Wheee!  Lots of fun, if you like
watching the cursor move.  Now hit DEL.  Gosh!   Where  did  all  those
'bell's come from?  (The latter doesn't always happen, and when it does
you usually get some strange control character too).  I ran  into  this
bug  once  when  I tried to abbreviate someone's first name to his full
name, or some such.

Vi  should  notice  that  it's expanding the abbreviation and refuse to
expand it again, so that it won't endless  loop.    It  would  even  be
acceptable  to  stop  expanding  ALL abbreviations, as long as it stops
expanding the initial one.

----------
		Kurt Vangsness
		AT&T Bell Laboratories - Naperville, Ill
		ihnp4!ih1ap!kav