From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.6/8.7.3) with ESMTP id XAA11828 for ; Tue, 26 Nov 1996 23:19:12 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id HAA13551; Tue, 26 Nov 1996 07:09:38 -0500 (EST) Resent-Date: Tue, 26 Nov 1996 07:09:38 -0500 (EST) From: Zefram Message-Id: <15840.199611261210@stone.dcs.warwick.ac.uk> Subject: Re: big key binding patch To: sinclair@dis.strath.ac.uk (Duncan Sinclair) Date: Tue, 26 Nov 1996 12:10:02 +0000 (GMT) Cc: zefram@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu In-Reply-To: <10360.849009784@dis.strath.ac.uk> from "Duncan Sinclair" at Nov 26, 96 12:03:04 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]8482.53 X-US-Congress: Moronic fuckers Content-Type: text Resent-Message-ID: <"1U_8b2.0.cJ3.1ujco"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2484 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >>Just to reiterate what I said yesterday, we should *not* use the patch >>to bind the ANSI arrow key sequences in vi insert mode. It is completely >>the wrong thing to do, and actually causes more problems. > >I'm curious.... why? Because vi doesn't bind them, and because already has a meaning that its use as a prefix would interfere with. > And what happens if you bind them using bindkey? It'll work as expected. >Can we use other ESC-prefixed bindings in vi-insert mode? Yes, just bind them using bindkey. >My version of vi ("nvi 1.34") allows me to use the cursor keys during >insert mode - with the obvious bindings: (output of :map!) I also use nvi, and those bindings really piss me off. Especially because I can't disable them (except by hacking the source). > ^[OA ^[ka cursor up Have you tried using this binding after you gave i a count? Look at what that binding does; it's a disgusting kludge. In ZLE it wouldn't be kludged, but it would still be wrong. -zefram