From: Zefram <zefram@dcs.warwick.ac.uk>
To: sinclair@dis.strath.ac.uk (Duncan Sinclair)
Cc: zefram@dcs.warwick.ac.uk, zsh-workers@math.gatech.edu
Subject: Re: Vi insert-mode cursor key bindings.
Date: Tue, 26 Nov 1996 12:53:26 +0000 (GMT) [thread overview]
Message-ID: <19984.199611261253@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <10621.849012193@dis.strath.ac.uk> from "Duncan Sinclair" at Nov 26, 96 12:43:13 pm
>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 <ESC> 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
next prev parent reply other threads:[~1996-11-26 13:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-26 12:43 Duncan Sinclair
1996-11-26 12:53 ` Zefram [this message]
[not found] ` <zefram@dcs.warwick.ac.uk>
1996-11-26 17:33 ` Bart Schaefer
1996-11-26 18:09 ` Zefram
1996-11-27 0:40 ` Bart Schaefer
1996-11-27 18:21 Duncan Sinclair
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19984.199611261253@stone.dcs.warwick.ac.uk \
--to=zefram@dcs.warwick.ac.uk \
--cc=sinclair@dis.strath.ac.uk \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).