Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 11 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
9  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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