MSYS2-packages icon indicating copy to clipboard operation
MSYS2-packages copied to clipboard

vim can not paste contents from Windows clipborad

Open hitbuyi opened this issue 3 years ago • 3 comments

Describe the issue

copy contents from ctrl+c in windows , and can not paste in vim file in MSYS2

Steps to Reproduce the Problem

vim 1.txt 

If applicable, add screenshots to help explain your problem.

  • OS: [e.g. Windows 10 Pro version 190042 64bit]
  • VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Nov 22 2021 19:31:05)

hitbuyi avatar Apr 28 '22 06:04 hitbuyi

Works here. Use the clipboard register "+ and p (put after cursor) or P (put before cursor). So "+p will copy the clipboard contents after the cursor. You can do the reverse with y (yank): "+y will copy the current selection into the clipboard register.

Compyx avatar Apr 28 '22 17:04 Compyx

If you are trying instead to paste via the terminal using the mouse (ie, right-click or however your terminal is configured for paste), you may need to :set mouse= to turn off vim's handling of the mouse so the terminal defaults get used instead.

jeremyd2019 avatar Apr 29 '22 03:04 jeremyd2019

If you are trying instead to paste via the terminal using the mouse (ie, right-click or however your terminal is configured for paste), you may need to :set mouse= to turn off vim's handling of the mouse so the terminal defaults get used instead.

Yes, what you said is right. I want mouse right-click-memu has paste,copy,select functions in vim,like in MSYS2 terminal

hitbuyi avatar Apr 29 '22 07:04 hitbuyi