zsh-vi-mode icon indicating copy to clipboard operation
zsh-vi-mode copied to clipboard

Cursor mode enabled, strange behavior around whitespace in visual mode

Open joihn opened this issue 1 year ago • 0 comments

thanks for this tool.

I like to use this in my zshrc to have a better cursor.

VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true
VI_MODE_SET_CURSOR=true

however after enabling it (and restarting zsh), vim visual mode selection behaves weirdly.

  • enable visual mode
  • start going left, the rightmost caracter is internnaly selected, but visually unselected (undesired)
  • sometime, the visual seletion behaves unexpectedly around whitespace
    • test is a sample text
    • if you start visual mode on the s, then hit right arrow 5 time to select sample, it will autoinclude the space (undesired), resulting in sample beeing selected

joihn avatar Feb 22 '24 13:02 joihn