vundle+vim8+php+xdebug

vundle

一开始容易被坑,vundle的运行方法是自己下载,不是自己下载,在安装上vundle后,直接修改~/.vimrc中,Plugin增加插件,然后运行PluginInstall即可安装

vim8 的编译找不到python。

vim8 

通过vim --version 命令查询,-python 一直找不到,通过编译参数--enable-pythoninterp=yes编译参数后,还是没有python,这非常让人恼火。我通过以步骤解决这个问题:

yum install -y pip install python python-devel python-config
./configure --with-features=huge --enable-multibyte= --enable-rubyinterp=yes --enable-pythoninterp=yes --with-python-command=/usr/bin/python --with-python-config-dir=/usr/lib/python2.7/site-packages

通过增加 -- with-python-config后,装上了 python模块。

 

vim8 for python3 安装

https://pypi.python.org 搜索pip,installation中:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py

这样就安装上了pipe3

运行

pip3 install python-config

./configure --with-features=huge --enable-multibyte= --enable-rubyinterp=yes --enable-python3interp=yes --with-python3-command=/usr/bin/python3 --with-python3-config-dir=/usr/lib/python3.4/site-packages --prefix=/usr/local/vim_python3
make
make install

这时竟然发现php不高量显示

增加~/.vimrc

set backspace=indent,eol,start

set backspace=2
colorscheme industry
set number
syntax on

 

posted @ 2018-08-14 21:16  阿旭^_^  阅读(410)  评论(0编辑  收藏  举报