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 AAA11929 for ; Wed, 27 Nov 1996 00:00:54 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id HAA14062; Tue, 26 Nov 1996 07:52:56 -0500 (EST) Resent-Date: Tue, 26 Nov 1996 07:52:56 -0500 (EST) From: Zefram Message-Id: <19984.199611261253@stone.dcs.warwick.ac.uk> Subject: Re: Vi insert-mode cursor key bindings. To: sinclair@dis.strath.ac.uk (Duncan Sinclair) Date: Tue, 26 Nov 1996 12:53:26 +0000 (GMT) Cc: zefram@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu In-Reply-To: <10621.849012193@dis.strath.ac.uk> from "Duncan Sinclair" at Nov 26, 96 12:43:13 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]8482.68 X-US-Congress: Moronic fuckers Content-Type: text Resent-Message-ID: <"azalT3.0.eR3.dWkco"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2486 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >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? The cursor keys will then work, but if you press there will be a delay, while zsh waits for the rest of an escape sequence, before vi-cmd-mode gets executed. I am of the opinion that key-generated escape sequences are a bad idea in general, for this reason. >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.) One better: I don't use cursor keys at all. Their behaviour is too inconsistent to rely on them. (The terminals that I regularly use don't generate ANSI escape sequences, so they wouldn't work in ZLE.) >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.) Yes. There is a case to be made for binding the cursor keys, but ... >If I can bind them manually - without messing up "esc" on it's own - >then I'm content. you *can* bind them manually if you want them, so I think we should default to the better vi emulation. > But I think it'll be a problem for other people. Only people that don't read the manual. -zefram