r/vim•
hellier

Yank and Paste REALLY buggy Ubuntu 17.10 gnome for anyone else?

I'm at my wits end.

I've tried installing vim-gtk and vim-gnome but neither are fixing the copy and paste issue.

Basically if I copy something in Chrome it won't let me paste it into vim, vim clipboard.

Anyone else experiencing this? Any suggestions on how to fix?

Posted Nov 13, 2017, 9:18 AM UTC

05
-romainl-The Patient Vimmer•

How do you copy in Chrome?

How do you put in Vim?

3
hellierOP•

chrome: highlight and ctrl+c
vim: p

-1
-romainl-The Patient Vimmer•

Use "+p to put from register +, which corresponds to the X11 clipboard.

Use "*p to put from register *, which corresponds to the X11 selection.

Add set clipboard^=unnamedplus to your vimrc to synchronize register " (the one used when you do p) with register +.

Add set clipboard^=unnamed to your vimrc to synchronize register " with register *.

Add set clipboard^=unnamed,unnamedplus to your vimrc to synchronize register " with registers + and *.

5
HaulethgggqG`` yourself•

Have you tried using proper register? Try ”+p.

3
arsenale•

I'm using vim from git on ubuntu 17.10 and it pasts with:

  • middle click

  • right click

  • p

Maybe I installed the xsel package, I don't remember if it was installed by default.

1
[deleted]•

[deleted]

1