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
Best Answer
This is what works for me (Ubuntu 13.10):
Reinstall vim as vim-gtk:
select what you want using the mouse - then type to copy to clipboard:
to paste to vim from clipboard type:
I don't know why but comparing the output of
vim --version
shows that the usual vim installation is quite restricted compared to vim-gtk. Replacing vim with vim-gtk did not affect any plugings.Further information: