🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3560

Re: Question about vi macros

#3560
From: Diomidis Spinellis
Date: Tue, 18 Apr 1989 07:25
16 lines
1271 bytes
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
Technical Details
Message-ID: <713@ecrcvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!unido!ecrcvax!diomidis
References: <1915@umbc3.UMBC.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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