Lauri Lehmijoki
Lauri Lehmijoki

Reputation: 337

How to fix VIM system clipboard usage in Mountain Lion

set clipboard+=unnamed is one of my favorite .vimrc configs. Thanks to it, yanks and deletes are copied to my system clipboard and I can easily paste them to other applications.

However, when I upgraded to Mountain Lion, this setting broke down.

Do you know how to fix this problem?

Upvotes: 4

Views: 714

Answers (1)

romainl
romainl

Reputation: 196476

The version of Vim provided by Apple has always been lacking useful features, +clipboard among them, but also Python and Ruby support or X11-related capabilities.

The solution has always been to install an up-to-date Vim yourself. There are many ways to do that. From relatively painless to rather involved:

  • Install MacVim and put the bundled mvim script in your path. After that $ mvim filename will open MacVim and $ mvim -f filename will open MacVim's Vim executable in the terminal. Use an alias if you want to keep typing $ vim filename.

  • Use Homebrew or MacPorts.

  • Install from the sources.

Upvotes: 3

Related Questions