From owner-freebsd-questions Mon Jan 20 05:11:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA29470 for questions-outgoing; Mon, 20 Jan 1997 05:11:43 -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 FAA29452 for ; Mon, 20 Jan 1997 05:11:36 -0800 (PST) Received: by mail.EUnet.hu, id OAA04968; Mon, 20 Jan 1997 14:09:52 +0100 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id NAA00697; Mon, 20 Jan 1997 13:41:50 +0100 (MET) From: Zahemszky Gabor Message-Id: <199701201241.NAA00697@CoDe.hu> Subject: Re: Vi and mapping keys To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Mon, 20 Jan 1997 13:41:50 +0100 (MET) Cc: keithl@wakko.gil.net In-Reply-To: from Keith Leonard at "Jan 18, 97 01:16:30 am" 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 > Howdy, > > Perhaps I'm archaic but I like vi. however when I have tried to map > functions to specific key (per Learning the vi Editor - O'Reilly & assoc.) > nvi doesn't seem to want to do it. It says things like: > > ^V not a vi command - attempting to trap the escape > [[. usage (after maping and attempting to use a special key) Pardon? Would you like to map [[. to anything? I tried it, and typed: :map <^V>[[. 1G (means: CTRL-V, to hide the escape, the escape, two ['s and the ".". After it a space, and the "mapped to" 1G. (As I haven't got any key, which sends it, I set notimeout, too.) And after it in command mode: [[. And bingo! After it, in the map list I have: .... ^[[[. 1G (As it have to.) Something was wrong, I think. Well, I like vi, too. > is this a situation with vi or is it with termcap? Maybe a pilot error. But please send us your version! > What have I missed or is nvi just not compatible with the above mentioned > book (Learning the VI Editor) I don't know, I've never read it. Bye, Gabor