I'm unable to use the system clipboard in Vim. I'm using ssh to connect to an EC2 instance running Ubuntu 18.04. I'm fairly sure that this has to do with neither the *
or the +
register showing up in the output of :reg
.
I've tried vim-gtk, vim-gtk3, and vim-gnome and the output of :reg
is always missing +
and *
registers.
However, in Neovim, the +
and *
registers show up and I am able to use the system clipboard:
How do I make the +
and *
registers appear (work) in regular vim?
:version
, and look for+clipboard
otherwise enter the ex command,:echo has('clipboard')
– Patrick Bacon May 8 '19 at 21:10+clipboard
and+xterm_clipboard
. – Cat May 8 '19 at 21:24ssh -X <user>@<hostname>
. Than you should be able to open X applications (I always test withxclock
). If that works, Vim also should have access to your local system clipboard. – Ralf May 9 '19 at 5:11y
from one Vim window andp
it into the next. This already works perfectly on my local computer: imgur.com/a/cEsRiEO – Cat May 9 '19 at 6:09:set nocompatible?
– Patrick Bacon May 9 '19 at 19:35