VIM8 the installation environment and supporting python3 CentOS7

VIM8 the installation environment and supporting python3 CentOS7

Build pythonIDE in CentOS7 environment found when the system comes with vim version because low enough to support python, leading to installation of the plug-in time is always wrong, so just put the original system after deleting the vim source installation and configuration support python3 vim8

Delete any original vim system

yum -y remove vim*

Use yum command deletes system vim

Source installation vim

First enter the path you want to put the installation package

cd /usr/local/share I am here on this path, you, as the case may be

Download Source Package vim

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

Configure the installation package found next to enter the src directory

cd ./src

Profiles

./configure --with-features=huge \
--enable-multibyte \
--enable-rubyinterp=yes \
--enable-pythoninterp=yes \
--enable-python3interp=yes \  
--prefix=/usr/local/vim8

It should be noted: vim does not support simultaneous configuration python2 and python3, suggest that you can directly configure python3, before a lot of online tutorials also set the --with-python3-config-dirconfiguration path python, in fact, has now vim8 not need to configure this, it will be based on your own find the path environment variable, simply --enable-python3interp this option can be set to yes, it means enable python3 interpreter.

You can also ./configure --help |grep pythonlower configuration files to view

Compile

make

installation

make install

Add soft links

ln -s /usr/local/vim8/bin/vim /usr/bin/vim

Check the current version of vim and support of python3

vim --versionYou can see the current version of vim

vim --version |grep python

When we see the following represents the complete support for the python3

So far we can go toss a pleasant environment python in vim

Guess you like

Origin www.cnblogs.com/aaaajayheng1990/p/11909221.html