Reputation: 49
As the title, I use archlinux
and installed Gnome
.I want to copy the contect to Google Chrome
, how can I do?
I have tried "+y or "*y but didn't work. Maybe I should recomplied it but I don't know how to do it.
Can somebody helps me?
Thanks.
Upvotes: 2
Views: 84
Reputation: 3027
There are a couple of inconsistencies between clipboards on Desktop machines, therefore vim
has two registers: *
and +
. Gnome shall use the clipboard at the +
register, and "+yy
(two yankes) and "+p
do work on my archlinux
in a GTK environment.
You can chek if your vim
has the clipboard feature compiled in (community package on archlinux
has it)
$ vim --version | grep clipboard
+clipboard +insert_expand +path_extra +toolbar
+eval +mouse_dec +statusline +xterm_clipboard
(if either -clipboard
or -xterm_clipboard
appears you have a vim
without clipboard support)
In archlinux
you need the packages extra/gvim
and extra/vim-runtime
to get the vim
version with the clipboard registers compiled in. Note that extra/gvim
conflicts with extra/vim
but there is nothing to worry, extra/gvim
comes with /usr/bin/vim
which works without an X11
display.
Also, we do have a vi and vim section of the site. Question like this one are better asked there.
Upvotes: 1
Reputation: 9
"y" copy is internal to vim, it does not work with your X clipboard, try selecting the text you want to copy, and then pressing Shift+Ctrl+C
Upvotes: 1