CentOS 6.3安装spf13-vim

CentOS 6.3安装spf13-vim过程:

安装VIM 7.3和ctags
编译安装VIM 7.3(支持multibyte和python):

# wget ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2
# tar jxvf vim-7.3.tar.bz2
# cd vim73
# ./configure --enable-multibyte --enable-pythoninterp=yes --with-python-config-dir=/usr/lib64/python2.6/config
# make && make install
# ln -sf /usr/local/bin/vim /bin/vi
注:编译如出现以下错误:
checking size of off_t… configure: error: in `/export/home/brant/vimsrc/vim73/src’:
configure: error: cannot compute sizeof (off_t)
解决方法:安装libiconv之后重新编译.

# echo "/usr/local/libiconv/lib" > /etc/ld.so.conf
# ldconfig
安装ctags:

# yum install ctags
安装spf13-vim
spf13-vim支持PHP/Python/Javascript/Go/Scala/Rails…,还可安装自定义的bundle.

# git clone https://github.com/spf13/spf13-vim.git
# cd spf13-vim
# ./bootstrap.sh

相关推荐