Skip to content

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

@softmoth

Description

@softmoth

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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions