I'm using Fedora Linux and don't have the ability to copy text from vim into the system clipboard (which I should be able to do by using the + or * register, though I'm not sure which). If I type this at the command line:

vim --version | grep clipboard

... the relevant line says -xterm_clipboard, when what I want to see is +xterm clipboard.

How can I add this support? Do I have to compile something (please say no!) or can I just yum install something?

link|improve this question

62% accept rate
feedback

1 Answer

up vote 3 down vote accepted

vim in Fedora is compiled without any X support in order to minimize the number of dependencies it has. You'll need to use gvim instead, in the vim-X11 package.

link|improve this answer
3  
Note that while you'll need the version of Vim that supports X, you don't need to run it as an X application--you can run it in a terminal as gvim -v. That will launch Vim in vi or terminal mode but with access to the X clipboard. You can make this easier with an alias: alias vim='gvim -v'. – garyjohn Oct 1 '10 at 15:43
@garyjohn - awesome! That works perfectly. – Nathan Long Oct 1 '10 at 16:06
@garyjohn - ...and, your awesome tip about running graphical vim on the command line has come in handy yet again, this time on a Mac. mvim -v also gives access to the system clipboard. Thanks! – Nathan Long Nov 18 '11 at 19:29
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.