forked from sharat87/zsh-vim-mode
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
Description
The README recommends bindkey -rpM viins '\e\e'
to remove the bindings that begin with double-escape, so that hitting escape twice will go instantly to Normal mode. But it is not working properly. Removing the double-escape bindings does make the cursor shape change immediately, but the prompt mode indicator has a KEYTIMEOUT
delay still.
It appears that when the double-escape bindings are in place, there's actually a double KEYTIMEOUT delay if you press escape twice. After the first KEYTIMEOUT delay the cursor shape is updated, and then after the second the prompt mode indicator changes.
Probably something in the keymap tracking state machine is confused by typing escape twice in a row.