I'm running vim on a Debian Jessie machine inside of a VirtualBox on my Mac. I'm trying to get yy and p to work so I can copy and paste across different terminal windows by using the system clipboard. Please note the following:
1) echo has('clipboard') returns 1 (I have vim-gtk installed)
2) My .vimrc file is as follows:
syntax on
set mouse=a
set clipboard=unnamedplus
3) I've logged into the ssh session with ssh -XY me@host>to allow x11 forwarding
4) The Debian machine is headless.
5) When I'm logged into the machine directly instead of over ssh, I still can't copy to the system clipboard.
When I do yy or even "+yy and then do :reg to look inside the registers, there is no listing for the "+ register.
Not sure what else to try.
:reg +give after"+yy? Also, I'd recommend tryingset clipboard=unnamedplus,unnamed. – Tumbler41 May 01 '17 at 16:18:regdoesn't show the+register at all. The only way I can get the system clipboard to work is to run the guest with the full GUI and a native terminal app open in the GUI. – StevieD May 01 '17 at 23:33:reg +give? On my machine:reg +shows the*register, which is why you don't see+in the full:regcommand. – Tumbler41 May 01 '17 at 23:38xcliporxsel? Also, it is very strange that:echom has("clipboard")gives1and:reg +fails (it should be the same code). What doesvim --versionactually say about the clipboard? – grochmal May 02 '17 at 01:22xclipandxselbut I could not get it working. The mapped vim command to xclip seemed to work (though I couldn't tell for sure) but when I went to paste I got some error about it not being able to locate a window, iirc. – StevieD May 02 '17 at 03:12