jeffreytse / zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.
MIT License
2.93k stars 102 forks source link

`^[` keybinds triggers normal mode #280

Closed musjj closed 1 month ago

musjj commented 1 month ago

General information

Basic examination

Problem description

^[ (^[B, etc.) keybinds in insert mode causes normal mode to be activated.

Reproduction steps

zvm_bindkey viins '^[B' backward-word
zvm_bindkey viins '^[F' forward-word
zvm_bindkey viins '^[D' delete-word

Expected behavior

Normal mode should not be activated.

musjj commented 1 month ago

This works:

zvm_bindkey viins '^[b' backward-word
zvm_bindkey viins '^[f' forward-word
zvm_bindkey viins '^[d' delete-word