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 XAA11890 for ; Tue, 26 Nov 1996 23:50:19 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id HAA13908; Tue, 26 Nov 1996 07:42:43 -0500 (EST) Resent-Date: Tue, 26 Nov 1996 07:42:43 -0500 (EST) To: Zefram cc: zsh-workers@math.gatech.edu Subject: Vi insert-mode cursor key bindings. In-reply-to: Your message of "Tue, 26 Nov 1996 12:10:02 +0000." Date: Tue, 26 Nov 1996 12:43:13 +0000 Message-ID: <10621.849012193@dis.strath.ac.uk> From: Duncan Sinclair Resent-Message-ID: <"U2I9M3.0.EP3.2Nkco"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2485 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >>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. These last two statements seem to contradict the first. If an ESC-prefix will interfere with the command "ESC", then how then does it "work as expected"? Or if it "works as expected", how does it interfere? I can see a lot of e-mail to the list saying "the up-arrow key doesn't work in vi mode". I seem to recall the same happening before. >Have you tried using this binding after you gave i a count? Look at >what that binding does; it's a disgusting kludge. Agreed. But then I'm hardly likely to be using the cursor keys during count-prefixed inserts with vi. (I don't use the cursor keys during inserts in vi, in fact, in vi, I don't use the cursor keys at all.) While I'm just as keen to see a good vi emulation from zle, we must still realise that zsh is a shell, not an editor. (In vi I don't use the cursor keys - in zsh I use them all the time.) There are lots of people out there that think that "up-arrow,return" is a perfectly reasonable thing to want to do, without having to hit "esc" first. (myself included.) If I can bind them manually - without messing up "esc" on it's own - then I'm content. But I think it'll be a problem for other people. Cheers, Duncan.