Skip to content

Instantly share code, notes, and snippets.

@dschneider
Last active December 26, 2015 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dschneider/7155332 to your computer and use it in GitHub Desktop.
Save dschneider/7155332 to your computer and use it in GitHub Desktop.
VIM - User system clipboard on Mac OS X
1.) Run in terminal: 'vim --version | grep clipboard'
2.) Make sure the output says +clipboard (-clipboard means it is not installed)
3.) Put the following in your vimrc:
" Enabling clipboard
set clipboard=unnamed
4.) Install vim through homebrew: 'brew install vim'
5.) Put an alias on vim in your bashrc/zshrc: alias vim="/usr/local/Cellar/vim/7.4.052/bin/vim"
6.) Check vim --version for clipboard value again
7.) Profit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment