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'd like to access the system clipboard in Mountain Lion as a register in vim.

The vim that comes with Mountain Lion is built with -xterm_clipboard shown in vim --version. Homebrew has a formula for vim in the dupes collection that also builds with -xterm_clipboard. After editing the formula I'm now building vim with +xterm_clipboard. However, going into vim and using :reg to see the registers doesn't show the contents of the system clipboard in any register.

How can I get this to work?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You don't want vim compiled with xterm-cliboard support. You want vim to be compiled with clipboard support.

After you get clipboard support compiled in you should see the system clipboard in * and +

share|improve this answer
    
Dang, can't believe I missed that. Thanks. –  Praxeolitic Aug 19 '13 at 5:20

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.