Last Updated: July 06, 2016
·
142
· keithbro

Copy / Paste between Vim and OS X clipboard

To be able to copy/paste between Vim and the clipboard on OS X, it's actually really easy.

  1. Install the latest Vim (you need at least 7.4) e.g. brew install vim
  2. Add the line set clipboard=unnamed to your .vimrc file.

Now you can use the normal Vim commands for yanking and pasting to and from the system clipboard. Yay!