I generally prefer to use the terminal version of vim
, rather than macvim
. The major downside is no direct OSX clipboard integration. I tried running brew install vim
but even that doesn't seem to compile with +clipboard support. I really wish "+yy
and +"p
would just work!
Turns out that there's a great little plugin for that, fakeclip!
There are different ways to install vim plugins into ~/.vim/
, but these days all the cool kids are using vundle. Here's how to install vundle, then use it to install fakeclip.
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
tee -a ~/.vimrc <<'EOT'
" enable vundle
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" vundle managed vim plugins; install these using ::BundleInstall
Bundle 'gmarik/vundle'
Bundle 'kana/vim-fakeclip'
EOT
vim +BundleInstall +qall