From owner-freebsd-questions Tue Jan 21 03:58:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id DAA15369 for questions-outgoing; Tue, 21 Jan 1997 03:58:11 -0800 (PST) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id DAA15363 for ; Tue, 21 Jan 1997 03:58:07 -0800 (PST) Received: by mail.EUnet.hu, id MAA09629; Tue, 21 Jan 1997 12:57:51 +0100 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id MAA00230; Tue, 21 Jan 1997 12:20:11 +0100 (MET) From: Zahemszky Gabor Message-Id: <199701211120.MAA00230@CoDe.hu> Subject: Re: Vi and mapping keys To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Tue, 21 Jan 1997 12:20:10 +0100 (MET) Cc: keithl@wakko.gil.net In-Reply-To: from Keith Leonard at "Jan 20, 97 06:31:29 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hang my head in shame, > > my problem with mapping was that I brought over from another OS the .exrc > file without thinking that the termcap for the other was different (I mean > I knew it - just didn't extend the thought far enough) > > Once I tried ':map <^v>..the function key I wanted...the function to > map' I saw at once that the code was different for that key. Problem > solved - much to my relief and shame. Hi! I've another idea. Do you know that with correct termcap/terminfo entries, you can use terminal independent way of redefining function keys? The trick, is that instead of <^V>F3, you have to write: #3, eg: :map #3 :q!<^v> to map F3 to quick exit without save. In this way, you can use the same .exrc on every type of Unix/terminal pair. Bye, Gabor