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 know this has been asked about a hundred times, and I have looked through almost every answer, I'll get to the point:

"+y
"*y
set clipboard=unnamed
set clipboard=unnamedplus
set clipboard+=unnamed    
y
yy

all do not copy to my systems clipboard, which is basically what every answer says to do,

my vim --version says my -clipboard, pretty sure it needs to be +clipboard, but I cannot figure out how to change it. Any information would be great thanks.

share|improve this question

migrated from stackoverflow.com May 3 '13 at 21:15

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 8 down vote accepted

You need to install a proper Vim, built with clipboard support. Since you didn't tell us what platform you are on I won't be very specific but here we go:

  • Mac OS X

    Download MacVim, it comes with a mvim script that you can use from your shell to run the GUI ($ mvim file) or the CLI ('$ mvim -v file'). You can also try Macports or, if you like shiny things, Homebrew if that's what floats your boat.

  • Linux

    Install the vim-gnome or vim-gtk package with your distribution's package manager.

  • Windows

    The default download on vim.org comes with clipboard support but it lags quite a lot. The Cream project provides reasonably up to date builds.

share|improve this answer
    
Thanks, worked on Arch-Linx with sudo pacman -S vim-gvim-gtk as where I was only doing sudo pacman -S vim –  XCritics May 3 '13 at 6:23

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.