Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keymap tracking is confused by typing escape twice in a row #28

Open
softmoth opened this issue Jul 1, 2020 · 0 comments
Open

Keymap tracking is confused by typing escape twice in a row #28

softmoth opened this issue Jul 1, 2020 · 0 comments
Assignees
Labels

Comments

@softmoth
Copy link
Owner

softmoth commented Jul 1, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant