Bug_in_vi_map_funtion

lab at qubix.UUCP lab at qubix.UUCP
Tue Jun 7 10:30:51 AEST 1983


I have found a VERY annoying bug in the map! capability of vi.
Background:
	map! ^[ ^[l
	map! ^[I ^D
The former causes the cursor to stay in the same place when ESC
has been pressed (rather than backing up one to the left). The
latter is my BackTab key, which I am using in input mode to
backtab over autoindent.

Bug: when I press BackTab, vi sees the ^[ and maps it, without
seeing if any other keystrokes arrive within 1 second (p. 16 of vi
documentation). This gives me ^[lI, effectively moving the cursor
all the way left, rather than one tab position, and leaving me in
input mode (with a beep from l (move right) at the end of a line).

If I unmap ^[, there is no problem with ^[I. If I map a starting
substring of any of my other function keys in command mode, there
is no problem.
					Larry Bickford
					decvax!decwrl!qubix!lab



More information about the Comp.bugs.4bsd.ucb-fixes mailing list