Reputation: 337
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
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
.
Upvotes: 3