VSCodeVim / VSCodeVim/Vim

Prevent x and d from copying to system keyboard

Open
#8,408 1 comment 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

Is your feature request related to a problem? Please describe.
I turned on the vim.useSystemClipboard option, however now I've realized that every single x and d also copies to my system clipboard, copying a bunch of useless characters that are filling up my clipboard.

Describe the solution you'd like
It would be nice if only yank would copy to the system clipboard and not any other vim commands. Those commands should only copy to vim's clipboard and not the system clipboard.

Describe alternatives you've considered
Using ctrl-shift-c and ctrl-shift-v (of course, this isn't great when trying to use Vim)

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 locating the handling for the vim.useSystemClipboard option and the command paths for x, d, and yank. Check how each command updates the system clipboard, then verify that only yank copies there while x and d remain in Vim's clipboard behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
desktop, developer-experience
Issue type
Feature
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.