Bug_in_vi_map_funtion

chris at umcp-cs.UUCP chris at umcp-cs.UUCP
Thu Jun 9 21:17:30 AEST 1983


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.



More information about the Comp.unix.wizards mailing list