shingt blog

re-build vim with homebrew

It seems Mac default vim doesn’t have clipboard support. So I reinstalled it by following https://gist.github.com/dcosson/3686437.

1
2
3
4
5
6
7
hg clone https://vim.googlecode.com/hg/ vim
cd vim
hg update vim73
make clean
./configure --prefix=/usr/local --enable-multibyte --enable-xim --enable-fontset --enable-rubyinterp --enable-perlinterp --enable-pythoninterp --with-features=huge --disable-selinux
make
sudo make install

The thing is after ‘make’ I got some linking error for ruby. (sorry no record left.) To src/auto/config.mk, need to add at LDFLAGS :

1
-L/Users/<user_name>/.rvm/rubies/<ruby_version>/lib/

I also got an error while ‘sudo make install’ for runtime/tools/efm_perl.pl, which was claimed as an issue here: http://code.google.com/p/vim/issues/detail?id=63 You just need to fix the garbling for copyright.

1
# Copyright (c) 2001 by Joerg Ziefle <joerg.ziefle@gmx.de>

And now successfully got compiled vim.