-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Visual Mode doesn't respect overridden keybindings #2842
Comments
Actually, a significant percentage of issues is regarding remapping of key bindings. Perhaps we can pool resources to work on a release which would resolve all of them in 1 shot! |
I'd be happy to help in any way I can, although my knowledge of the internals of this extension and TypeScript in general is very small 😅 A couple of those issues does shed some light about what the issue is. In #2131 (comment) and #1835 (comment), you can see that the workaround is pressing another key, because visual mode keybinds don't work otherwise. I think this is because when visual mode is turned on, See that extra It would also seem that this has been happening for a while. As a workaround:
|
Closing as duplicate of #1835 |
Describe the bug
The
visualModeKeyBindings{NonRecursive}
option ignores some motion keybindings.To Reproduce
vim.visualModeKeyBindingsNonRecursive
and position the cursor over the dot (.
) aftervim
L
Expected behavior
Select from the position of the cursor until the end of the line in visual mode (same as using the
$
motion as stated in the config)Actual behaviour
Selects from the position of the cursor until the end of the viewport (
L
's default behaviour, instead of the one defined in the config file)Environment
Additional context
I can confirm that using
vnoremap L $
in regularvim
behaves as expected. Other visual mode commands (such as y$) do work, but only after I've pressed v to enter visual mode _and pressed another key that's not escape). This seems to be a different bug.The text was updated successfully, but these errors were encountered: