mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 16:02:24 +00:00
zsh: plugins like zsh-vi-mode rebind ^[ to their own widgets, so sniffing the Esc widget for vi-cmd-mode missed them. Key off the main keymap link instead (bindkey -A viins main), which both plain bindkey -v and zsh-vi-mode establish. bash: [[ -o vi ]] misses vi mode configured only in ~/.inputrc (set editing-mode vi flips readline without the shell option); read readline's actual mode via bind -v instead.