VSCodeVim / VSCodeVim/Vim

Selecting with `V` + select all matching + paste only modifies first

Open
#3,514 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

When selecting all matching texts, pasting will only replace the one you were at, and not the rest

To Reproduce
Steps to reproduce the behavior:

  1. Have a file with the same word many times
  2. In command mode select the word
  3. Press Ctrl+Shift+l to select all matches
  4. Press p
  5. See error, only the one you had initially selected got replaced

Expected behavior
All matches should have been replaced

Screenshots
Before pasting
image
After pasting
image

Environment (please complete the following information):

  • Extension (VsCodeVim) version: v1.0.8
  • VSCode version: 1.31.1
  • OS: Arch Linux

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

Start by reproducing the Ctrl+Shift+l and p sequence in VSCodeVim with a file containing repeated words, then trace the selection and paste handling involved in that command path. Done means pasting replaces every selected match rather than only the initially selected word.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.