VSCodeVim / VSCodeVim/Vim

Visual Mode Issues: `S` command

Open
#1,306 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

What did you do?

Visually selected this text and pressed S, brackets represent the visual selection:
Line before
hell[man's
lma]o world
Line after

What did you expect to happen?

In Vim, the selected lines are removed and the editor is placed in insert mode:
Line before

Line after

What happened instead?

The editor goes into "Surround Insert Mode" then the next character pressed is inserted around the selection, for example s* gives:
Line before
hellman's
lma
o world
Line after

Technical details:
  • VSCode Version: 1.9.1
  • VsCodeVim Version: 0.5.3
  • OS: Fedora 25

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by reproducing the visual selection and S command in VSCodeVim, then trace the keybinding path that enters Surround Insert Mode. Done means S removes the selected lines and enters insert mode, matching Vim, while preserving the reported reproduction case.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.