-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
$ (move to end of line) then % (match parentheses) not working properly in visual mode #2304
Comments
Definitely an issue for |
Another workaround is to do things in visual state first (where in my experience |
@sooheon Thanks, but @TheBB even in normal visual mode, $ still move one char beyond the end of the line which makes |
I can't reproduce the bug anymore. @liujoey Is this still the case for you? |
@StreakyCobra The bug is gone, I guess the recent evil updates fixed this issue. |
Say we have code like this:
My cursor is at char 'f' of the function name 'foo', a quick way to select the whole function will be
Shift-v
to enter Visual-Line mode to select the first line, then press$
move cursor to the end of the line, then press%
to match the close brace. ThisShift-v
$
%
sequence works perfectly in Vim, but not in Evil.When in Evil visual mode, if you press
$
, the cursor moves one char further than the last char of '{', just as same as it does in Vim, but then%
does nothing. In Vim even the cursor is one char right to the last char,%
can still jump to the close curly brace. But in Evil, I have to pressh
key once, move my cursor one char back to make%
to work. I've also submitted an issue on Evil's issue tracking site. This bugs me a lot because my muscle memory is so strong about this one.The text was updated successfully, but these errors were encountered: