Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Y + p = paste on same line instead of new line

Open CuteWaterBeary opened this issue 3 years ago • 2 comments

shift Y then p copies the current line but pastes it on the same line instead of a new line under the current line.

To Reproduce Steps to reproduce the behavior:

  1. Shift y to yank full line
  2. p to paste under current line

Expected behavior Full line yanked and should be pasted on new line

  • Extension (VsCodeVim) version: 1.24.1
  • VSCode version: 1.72.2
  • OS: OSx

CuteWaterBeary avatar Oct 20 '22 22:10 CuteWaterBeary

I'm troubled by this as well. However, I'm not facing this problem when copying and pasting in the same file. I'm facing this problem when copying from a file and then pasting to another.

So, the use case is this:

  1. In first file, press yy to yank a line
  2. Switch to another VSCode window
  3. Press p or ]p, both showing the problem

VSCode version:

版本: 1.91.0 (system setup)
認可: ea1445cc7016315d0f5728f8e8b12a45dc0a7286
日期: 2024-07-01T18:52:22.949Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631

OS version: Windows 11 host, opening a project in local WSL2 (Ubuntu 22.04)

VSCodeVim version: v1.27.3

timsu92 avatar Jul 11 '24 09:07 timsu92

This problem occurs when copying and pasting cross VSCode windows, but not panel splits in a single window.

timsu92 avatar Jul 26 '24 05:07 timsu92