zsh-vim-mode
zsh-vim-mode copied to clipboard
[bug] in keymap 'visual', 'S' in the second character will move the the word to the wrong position
# ~/.zshrc
. ~/.zinit/plugins/zsh-vim-mode/zsh-vim-mode.plugin.zsh
Reproduce Procedures
type some word and move the cursor to the second character
press 'v' to the visual mode, then press "S'" to add a pair of single quote

however, the correct result should be
g'i't add -A
the i has been moved to the wrong position.
note
only happen to the second character. other position will not happen.
thanks!
This is a bug in Zsh itself, as shown with the following bare-bones example .zshrc:
autoload -Uz surround
zle -N add-surround surround
bindkey -M visual S add-surround