Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor mode enabled, strange behavior around whitespace in visual mode #268

Open
joihn opened this issue Feb 22, 2024 · 0 comments
Open

Comments

@joihn
Copy link

joihn commented Feb 22, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant