$ which vim
/usr/bin/vim
$ vim --version | head -n 2
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 20 2012 13:16:02)Compiled by root@apple.com
(2) インストールと設定
12345678910111213141516
$ cd /opt/local/bin
# download, compile, and install the latest vim$ sudo hg clone https://code.google.com/p/vim/
$ mv vim vim_
$ cd vim_
$ sudo ./configure --prefix=/opt/local
$ sudo make
$ sudo make install
# add the binary to your path, ahead of /usr/bin$ echo'export PATH="/opt/local/bin:$PATH"' >> ~/.zshrc
# reload zshrc so the changes take effect in this window$ source ~/.zshrc