Skip to content
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

S deletes the whole line  #4168

Closed
ghost opened this issue Oct 13, 2019 · 1 comment
Closed

S deletes the whole line  #4168

ghost opened this issue Oct 13, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 13, 2019

Vim's S preserves indentation. Here

int main() {
  printf("%d", 1);
}

pressing S on printf clears the line but leaves the indentation of two spaces, putting the cursor on the third column.

VSCodeVim's S clears the whole line, spaces and all. This makes it much less useful because you then have to recreate the spaces. cc has the same problem.

I've fixed this temporarily with the setting

{
  "vim.normalModeKeyBindings": [
    {
      "before": ["S"],
      "after": ["^", "c", "$"],
    },
  ]
}

but this isn't ideal.

@J-Fields
Copy link
Member

Duplicate of #3653.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant