源码安装 vim

环境:ubuntu server 14.04

1    remove vim

     sudo apt-get remove vim vim-runtime gvim

2    download vim source code

     git clone  https://github.com/b4winckler/vim.git

3    
     cd vim
     
     ./configure --with-features=huge \
            --enable-multibyte \
            --enable-rubyinterp \
            --enable-pythoninterp \
            --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
            --enable-perlinterp \
            --enable-luainterp \
            --enable-gui=gtk2 --enable-cscope --prefix=/usr

     make VIMRUNTIMEDIR=/usr/share/vim/vim74

     sudo make install

4
     sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
     
     sudo update-alternatives --set vi /usr/bin/vim

5

     vi --version 

你可能感兴趣的:(vim,source)