Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: big key binding patch
- X-seq: zsh-workers 2484
- From: Zefram <zefram@xxxxxxxxxxxxxxxxx>
- To: sinclair@xxxxxxxxxxxxxxxx (Duncan Sinclair)
- Subject: Re: big key binding patch
- Date: Tue, 26 Nov 1996 12:10:02 +0000 (GMT)
- Cc: zefram@xxxxxxxxxxxxxxxxx, zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <10360.849009784@xxxxxxxxxxxxxxxx> from "Duncan Sinclair" at Nov 26, 96 12:03:04 pm
>>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 <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.
>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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author