VSCodeVim / VSCodeVim/Vim

Cmd+D loses multiple selections

Open
#2,325 27 comments 30 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

What happened: After a recent VSCodeVim update (since v0.10.12?), pressing Cmd+D sometimes loses multiple selections

What did you expect to happen: Selections should be maintained when using Cmd+D to select multiple occurrences

How to reproduce it (as minimally and precisely as possible):

  • In normal mode, position the cursor within a word that is repeated within the current buffer
  • Press viw to select the current word in visual mode
  • Press Cmd+D; another cursor is created at the next occurrence, and the status bar indicates that the editor is still in visual mode, however the selection is lost and the cursors are moved to one character after the ends of the words (preventing the ability to use c to replace both selected occurrences).

Environment: macOS

  • Extension (VsCodeVim) version: 0.10.3
  • VSCode version: 1.19.2
  • OS version: 10.12.6

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

Reproduce the issue in the VSCodeVim extension using the stated macOS, VSCode, and extension versions: enter visual mode with viw, then press Cmd+D on repeated words. Trace the handling of visual selections and multiple cursors, and verify that both occurrences remain selected so c can replace them together.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.