Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vi-mode): fix cursor change on visual mode (#11586)
Fixes #11586
- Loading branch information
f7d903f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excellent work on the fix :) , unrelated but is there a way to map ii in visual mode to escape into normal mode?
f7d903f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arkosno you could run the code below or put it in your zshrc file:
Either way, many bindkeys in normal mode already work in visual mode. You can check bindkeys for a specific keymap with the
bindkey -M
command, like so:f7d903f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason it's not working, I get an error sound and nothing happens but when I check bindkey -M visual, the setting is there as implemented.
f7d903f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure you are really in visual mode. To enter you should press
v
from the normal mode, and pressing left/right arrows should highlight more characters.