下載 vim 原始碼:http://www.vim.org/sources.php
設定編譯選項, 我的配置是:
./configure –prefix=/usr/local/vim
–enable-multibyte
–enable-fontset
–enable-xim
–enable-gui=auto
–enable-pythoninterp=dynamic
–enable-pythoninterp
–enable-python3interp=dynamic
–enable-rubyinterp=dynamic
–enable-rubyinterp
–enable-perlinterp
–enable-cscope
–enable-sniff
–with-x
–with-compiledby=erocpil
–with-features=huge
–enable-luainterp=dynamic
–with-python-config-dir=/usr/lib/python2.7/config
–with-python3-config-dir=/usr/lib/python3.2/config
其他選項參見 ./configure –help
補充説明:
在 CentOS 上編譯時不支援 “–enable-multibyte”
在 Debian 上編譯時不支援 “–enable-fontset”