-
-
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 + 'S' Not Working #4072
Comments
So just a quick question, was there ever a version in which this command worked as intended? I swear I had no problem with this plugin back then, but ever since I tried it out again recently, it has been the only thing that has been holding me back from using the plugin. |
No, as far as I can tell, it's never been supported in visual mode. I'll get to this when I have the chance; in the meantime, you can use |
@J-Fields I want to give this a try |
@1ntEgr8 Awesome, thanks! I'll assign the issue to you. |
Hi, myself and @bdomanski would like to take a look at this one as well as we are close to finishing up our first PR. |
Sweet, thanks @micklett! |
Hello @J-Fields i would love to work on this issue. |
Hi, this behavior appears to conflict with what's expected with vim.surround plugin which comes with the extension. With vim.surround the expected behavior in visual mode is this: Image in that I'm in visual mode and have
Pressing the keys
Should I open another ticket for this? Doc: https://github.com/tpope/vim-surround/blob/master/doc/surround.txt#L69 If I highlight with my mouse instead of visual mode I get the expected behavior but that defeats the purpose of vim 😜 I installed VSCode Neovim extension and disabled the official vscodevim extension and I get the behavior I want now. |
Describe the bug
When I grab multiple lines of text in visual mode and click
S
, it is expected that it deletes all lines that are selected and puts me into insert mode. But what is happening instead is that it puts me into insert mode and allows me to insert one character at the start and beginning of the selection.To Reproduce
Steps to reproduce the behavior:
v
to enter visual mode.jj
to select two lines down.S
to attempt to delete the selected lines.e
to see that an 'e' has been inserted into the location where you started and ended the selection.Expected behavior
When I grab multiple lines of text in visual mode and click
S
, it is expected that it deletes all lines that are selected and puts me into insert mode.Screenshots
Environment (please complete the following information):
Extension (VsCodeVim) version: 1.10.2
VSCode version: 1.38.1
OS: macOS Mojave 10.14.6
Additional context
I'm no VIM expert, but it seems like
S
isn't the only key to have issues in visual mode. Selecting in visual mode and clickingI
orA
also seem to reproduce unintentional behavior.The text was updated successfully, but these errors were encountered: