How to get Mac Vim clipboard copy and paste (Snow Leopard) in the terminal
I’ve been spending more time lately in iterm2 exclusively. The recent split-screen feature is great for me. Running vim in the terminal, I finally accepted this morning how annoying it was that the system clipboard wasn’t integrated.
A quick google and recompile with xterm_clipboard support did the trick.
Here’s the configure command:
./configure --with-features=huge \
--enable-cscope \
--enable-pythoninterp \
--enable-rubyinterp \
--enable-perlinterp \
--enable-gui=macvim \
--with-mac-arch=intel \
--enable-multibyte \
--enable-clipboard=yes \
--enable-xterm_clipboard=yes
If you are like me you prefer a single line for copy and pasting so here’s the same command in a margin defying format:
./configure --with-features=huge --enable-cscope --enable-pythoninterp --enable-rubyinterp --enable-perlinterp --enable-gui=macvim --with-mac-arch=intel --enable-multibyte --enable-clipboard=yes --enable-xterm_clipboard=yes