Xref: utzoo comp.editors:711 comp.unix.questions:12983 Path: utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!unido!ecrcvax!diomidis From: diomidis@ecrcvax.UUCP (Diomidis Spinellis) Newsgroups: comp.editors,comp.unix.questions Subject: Re: Question about vi macros Summary: Only function keys can have meaningful names. Keywords: vi editor, key mappings, function keys Message-ID: <713@ecrcvax.UUCP> Date: 18 Apr 89 07:25:50 GMT References: <1915@umbc3.UMBC.EDU> Reply-To: diomidis@ecrcvax.UUCP (Diomidis Spinellis) Organization: ECRC, Munich 81, West Germany Lines: 16 In article <1915@umbc3.UMBC.EDU> rostamia@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