Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: mcvax!cs.vu.nl!maart@uunet.uu.net (Maarten Litmaath) Newsgroups: comp.sys.sun Subject: Re: Mapping function keys in VI Keywords: Software Message-ID: <2163@solo11.cs.vu.nl> Date: 3 Apr 89 19:38:26 GMT References: <15718@versatc.UUCP> Sender: usenet@rice.edu Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 20 Approved: Sun-Spots@rice.edu Original-Date: 15 Mar 89 19:07:08 GMT X-Sun-Spots-Digest: Volume 7, Issue 220, message 6 of 16 versatc!todd@ames.arc.nasa.gov (Todd Scruggs) writes: \I am trying to map the function keys R1 - R15 to do macros in the VI \editor. Example. R1 normally generates the sequence ^[[208z. Say, you want to map R1 to `:!date^M': :map ^V :!date^V^M ^^^^ hit R1 here The `^V's are needed to escape the following characters, which would normally end the map command. You can put such mappings into your EXINIT environment variable or your .exrc startup file. BTW, I've just posted a fairly extended vi reference to comp.misc and comp.editors. Email if you missed it. Maarten Litmaath @ VU Amsterdam: maart@cs.vu.nl, mcvax!botter!maart