Vim: Visual Mode + 'S' Not Working

Created on 13 Sep 2019  路  8Comments  路  Source: VSCodeVim/Vim

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:

  1. Open the file and focus to some text.
  2. Click v to enter visual mode.
  3. Click jj to select two lines down.
  4. Click S to attempt to delete the selected lines.
  5. Click 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
Select

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 clicking I or A also seem to reproduce unintentional behavior.

good first issue kinbug statuduplicate

All 8 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 c in visual-line mode to get the same effect, though I know changing muscle is stubborn.

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

waltiam picture waltiam  路  3Comments

orn688 picture orn688  路  3Comments

liamdawson picture liamdawson  路  3Comments

lucastheisen picture lucastheisen  路  3Comments

ACollectionOfAtoms picture ACollectionOfAtoms  路  3Comments