How to fix VIM clipboard usage in Mountain Lion

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

However, when I got to Mountain Lion, this parameter broke.

Do you know how to fix this problem?

+4
source share
1 answer

Apple's Vim version always lacked useful features, +clipboard among them, but also Python and Ruby support, or X11 related features.

The solution has always been to install the most modern Vim. There are many ways to do this. From relatively painless to fairly involved:

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

  • Use Homebrew or MacPorts .

  • Install from sources .

+3
source

All Articles