Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Vimode problem (key press dropping)



2015/07/29 23:14, Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:

>  And if something like <Escape>a
> is typed too fast from vi-mode, it would still be thrown out as a whole.

I knew this but was thinking this was not a serious problem, but

> Taking the default emacs bindings, Ctrl-X is a prefix but we don't
> want a timeout after Ctrl-X because it is the user typing followup
> characters.

yes, I didn't test for emacs mode but was just imagining that prefixes
in emacs mode are taken care of somewhere else.


Then maybe just to modify the default?
Or create a widget like z_nop (no operation)?

diff --git a/Src/Zle/zle_bindings.c b/Src/Zle/zle_bindings.c
index 2ae8c87..55863db 100644
--- a/Src/Zle/zle_bindings.c
+++ b/Src/Zle/zle_bindings.c
@@ -317,7 +317,7 @@ int vicmdbind[128] = {
     /* ^X */ z_undefinedkey,
     /* ^Y */ z_undefinedkey,
     /* ^Z */ z_undefinedkey,
-    /* ^[ */ z_undefinedkey,
+    /* ^[ */ z_beep,
     /* ^\ */ z_undefinedkey,
     /* ^] */ z_undefinedkey,
     /* ^^ */ z_undefinedkey,



Messages sorted by: Reverse Date, Date, Thread, Author