🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3167

Re: function keys in vi

#3167
From: Hans Mulder
Date: Wed, 08 Jun 1988 12:44
19 lines
1040 bytes
In article <999@unccvax.UUCP> fwp@unccvax.UUCP (Rick Pasotto) writes:
>	Is there a way to :map function keys other than those defined by
>f0 thru f9 in termcap?

Just type :map <ctrl-V> and then press the key.

You can put this sort of mapping in a .exrc file, but if you are using
several different terminal types, you have a problem.  Perhaps you could
set EXINIT to "source $HOME/depends/on/ttytype".

>                        My termcap has the correct sequences that the keys
>send and :map will understand #12 as f12 ...

Really?  This version of vi (version 3.7, 6/7/85), interprets #12 as f1.

>Rick Pasotto
>mcnc!unccvax!fwp

Hans Mulder	hansm@cwi.nl	mcvax!hansm
Technical Details
Message-ID: <353@piring.cwi.nl>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!amdahl!pyramid!cbmvax!uunet!mcvax!hansm
References: <999@unccvax.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!pacbell!ames!amdahl!pyramid!cbmvax!uunet!mcvax!hansm
From: hansm@cwi.nl (Hans Mulder)
Newsgroups: comp.editors
Subject: Re: function keys in vi
Keywords: termcap vi
Message-ID: <353@piring.cwi.nl>
Date: 8 Jun 88 12:44:20 GMT
References: <999@unccvax.UUCP>
Organization: CWI, Amsterdam
Lines: 19