As said in the title I am unable to copy from vim to system clipboard. Viceversa works, copying from outside vim and pasting with p
is ok.
I have installed clipboard support, vim version is 7.3.429:
$ vim --version | grep clip
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+xsmp_interact +xterm_clipboard -xterm_save
I have:
set clipboard=unnamedplus
in my .vimrc
and it is set when I do:
set clipboard?
or
:echo has('clipboard')
I am using Ubuntu 12.04 LTS, and vim inside gnome-terminal
(but also GVim has the same problem). Any idea?
Thanks
clipboard+=unnamedplus
something in the default setting was disabling it. Changing toclipboard=unnamedplus
(eg removing other settings) worked for me.set clipboard+=unnamed
&set clipboard+=unnamedplus
doesn't work while using y and p for share the system clipboard.:set clipboard?
==clipboard=autoselect,exclude:cons\|linux,unnamed,unnamedplus
; After I removed the first+
, which isset clipboard=unnamed
andset clipboard+=unnamedplus
, and it works!!:set clipboard?
==clipboard=unnamed,unnamedplus