CentOS6 Source Installation Vim8
VIM8 a lot more features than VIM7.
However, the source code is required for installation.
sudo yum install -y ruby ruby-devel lua lua-devel luajit luajit-devel ctags git python python-devel python3 python3-devel tcl-devel perl perl-devel perl-ExtUtils-ParseXS perl-ExtUtils-XSpp perl-ExtUtils-CBuilder perl-ExtUtils-Embed libX11-devel
There is also an older library, which alone takes out to say
yum install ncurses-devel -y
./configure --with-features=huge --enable-python3interp --enable-pythoninterp --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ --enable-rubyinterp --enable-luainterp --enable-perlinterp --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/ --enable-multibyte --enable-cscope --prefix=/usr/local/vim/makemake install
The parameters are described as follows:
--with-features=huge:支持最大特性--enable-rubyinterp:打开对ruby编写的插件的支持--enable-pythoninterp:打开对python编写的插件的支持--enable-python3interp:打开对python3编写的插件的支持--enable-luainterp:打开对lua编写的插件的支持--enable-perlinterp:打开对perl编写的插件的支持--enable-multibyte:打开多字节支持,可以在Vim中输入中文--enable-cscope:打开对cscope的支持--with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ 指定python 路径--with-python-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu/ 指定python3路径--prefix=/usr/local/vim:指定将要安装到的路径(自行创建)
- Import Environment variables
Note that when the compilation is complete, it is not found to run vim directly.
You also need to configure the environment variables.
To edit a file:
/usr/local/bin/vim /etc/profile.d/path.shInput content:
#!/bin/bashexport PATH=$PATH:/usr/local/bin/vim
Import Environment variables
source /etc/profile.d/path.sh
This time you can tap Vim to run as usual.
End
CentOS6 Source Installation Vim8