Visual Mode Issues: `S` command
Nobody has claimed this yet.
- 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
lmao world
Line after
Technical details:
- VSCode Version: 1.9.1
- VsCodeVim Version: 0.5.3
- OS: Fedora 25
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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