Due to the lack of security with standard vino server, I switched to use x11vnc on my linux (with Xubuntu 14.04) box and SSVNC on the windows side.
With vino, cut and paste from windows to Linux and windows, in the two directions, was flaky(1) but when it worked, it worked for every program; I could use the vim
register "+
without problem. I run(2)
autocutsel -fork
normally so that the "middle click" and ctrl-c/v selections are the same.
Now that I use x11vnc (called with: x11vnc -forever -repeat -safer -usepw -ssl -autoport 6000
) to have a safe, encrypted connection, a problem arose:
I can copy on windows and paste in the remote linux terminals, libreoffice etc. without any problem, in both directions.
In
vim
, orgvim
, any attempt to paste with"+p
or"*p
saysE353: Nothing in register *
Again in
vim
orgvim
, the other way around does work: if I"+yy
then I can paste the thing on the Windows side.
As anyone any clue about this problem? The strange thing is that paste works everywhere I checked but in vim
...
Package Installed Previous Now State
=======================-===============-===============-===============-=====
vim 2:7.4.052-1ubuntu3 2:7.4.052-1ubuntu3 2:7.4.052-1ubuntu3 install
vim-gnome 2:7.4.052-1ubuntu3 2:7.4.052-1ubuntu3 2:7.4.052-1ubuntu3 install
Footnotes:
(1) can't find the bug now --- it is reported. It stops working after a while.
(2) I tried with and without. No changes.
set clipboard=unnamedplus
in every linux I use (2)alias vim='gvim -v'
in my.bashrc
s (to work around certain distributions compiling vim without X clipboard support) (3)set clipboard=unnamed
in windows. Hope it helps.