VS Code Vim copies (yanks) everything I select, without pressing y
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
Any time I select anything (visual mode) whatever I last selected is automatically in my clipboard, as if I yanked it (by I never yanked it).
To Reproduce
- Open any file.
- Select text in visual mode.
- ctrl+c to exit visual mode
- press p, and it will paste whatever you just selected, even if you did not yank it.
Expected behavior
Selecting text should not automatically copy stuff into clipboard.
Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.21.10 (2021-10-14)
- VSCode version:
Version: 1.62.3 (user setup)
Commit: ccbaa2d27e38e5afa3e5c21c1c7bef4657064247
Date: 2021-11-17T08:11:14.551Z
Electron: 13.5.2
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042
Additional context
This happens even on fresh VS Code installs in Windows or Linux. This default behavior does not match Vim, and not desirable.
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
Start by reproducing the issue in VS Code with the VSCodeVim extension: enter visual mode, select text, exit with Ctrl+C, and press p. Trace the visual-selection and yank/clipboard handling involved; done means selecting text no longer changes the clipboard and p pastes only explicitly yanked content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100