Vim icon indicating copy to clipboard operation
Vim copied to clipboard

VS Code Vim copies (yanks) everything I select, without pressing y

Open trusktr opened this issue 4 years ago • 3 comments

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

  1. Open any file.
  2. Select text in visual mode.
  3. ctrl+c to exit visual mode
  4. 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.

trusktr avatar Nov 27 '21 05:11 trusktr

The source of this bug is the Vim: Override Copy option. Disabling this option fixes the issue.

trusktr avatar Dec 05 '21 22:12 trusktr

@J-Fields Found the source of the problem. ^

trusktr avatar Dec 05 '21 22:12 trusktr

Can confirm that this bug still exists, and that your solution of disabling the option fixed it.

Cvndas avatar Oct 09 '25 09:10 Cvndas