From: Duncan Sinclair <sinclair@dis.strath.ac.uk>
To: Zefram <zefram@dcs.warwick.ac.uk>
Cc: zsh-workers@math.gatech.edu
Subject: Vi insert-mode cursor key bindings.
Date: Tue, 26 Nov 1996 12:43:13 +0000 [thread overview]
Message-ID: <10621.849012193@dis.strath.ac.uk> (raw)
In-Reply-To: Your message of "Tue, 26 Nov 1996 12:10:02 +0000."
>>I'm curious.... why?
>
>Because vi doesn't bind them, and because <ESC> 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.
next reply other threads:[~1996-11-26 12:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-26 12:43 Duncan Sinclair [this message]
1996-11-26 12:53 ` Zefram
[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=10621.849012193@dis.strath.ac.uk \
--to=sinclair@dis.strath.ac.uk \
--cc=zefram@dcs.warwick.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).