CentOS6 Source Installation Vim8

Source: Internet
Author: User

CentOS6 Source Installation Vim8

VIM8 a lot more features than VIM7.
However, the source code is required for installation.

    • Removing old versions of Vim
      yum remove vim

    • Installing dependent libraries
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

    • Go to GitHub clone source code back
      git clone https://github.com/vim/vim.git

    • Enter the source directory
      cd vim/src

    • To compile and add Python support, note that the following parameters are optional
./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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.