Skip to content

Instantly share code, notes, and snippets.

@dergachev
Created January 8, 2014 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dergachev/8322512 to your computer and use it in GitHub Desktop.
Save dergachev/8322512 to your computer and use it in GitHub Desktop.

Vim and clipboard support

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.

Installing vundle

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment