Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 18 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.

share|improve this answer
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
Fedora package vim-X11 ships also binary vimx, so you can run that one within X11 if you don't want to alias. – LukasT Dec 19 '14 at 8:05
Thanks a lot to everybody! – tmow Apr 24 '15 at 7:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .