Question about vi macros
Diomidis Spinellis
diomidis at ecrcvax.UUCP
Tue Apr 18 17:25:50 AEST 1989
In article <1915 at umbc3.UMBC.EDU> rostamia at umbc3.UMBC.EDU (Rouben Rostamian) writes:
>[ Asks how he can set up the comment field of the vi map listing in the
> way it is done with the arrow keys.]
There is no way to set the comment field of an arbitrary key. You can
however have the function keys have meaningful identifiers by mapping them
as #n (where n is the number of the function key). Thus ``:map #6 w'' will
map function key 6 to w and will be listed as something like:
f6 ^[[17~ w
The arrow key names are hard-coded in vi and apart from the function keys
special case the other mappings have the left hand side of the map used
as the key name.
--
Diomidis Spinellis
More information about the Comp.unix.questions
mailing list