Enable Python support for Vim
If you want to add a plug-in such as YouCompleteMe in VIM, you need Python support for VIM, which is specified in the options of the first compilation. The procedure is as follows:
1. Check whether python is supported.
Vim -- version | grep python
It indicates that Python support is not added. If you use the YouCompleteMe plug-in, this warning will appear.
2. Solution: recompile and install Vim and enable Python support for Vim.
./Configure -- enable-pythoninterp = yes -- with-python-config-dir =/usr/lib64/python2.6/config
Tip: the following problems may occur:
Solution:
Yum install python-devel
3. Check again. Vim has been added to Python support.
-------------------------------------- Split line --------------------------------------
Build VIM into a simple and practical IDE
Vim Learning Guide
Quick learn Vi Editor
Powerful Vim Editor
Build a Vim Development Environment on CentOS 6.2
Install the highlighted Vim editing tool in CentOS 5.4
Vim tips: C language settings
Set the Vim row number in Ubuntu
Vim editor basic tutorial
-------------------------------------- Split line --------------------------------------
This article permanently updates the link address: