1.下载vimplus
git clone https://gitee.com/slug/vimplus ~/.vim/
2.安装vimplus
- cd ~/.vim/vimplus
- sudo ./install.sh
Add:
通过vimplus可以一键安装YouCompleteMe,期间可能网速不好的同学会遇到YouCompleteMe需要用到的第三方库下载超时或者失败等问题,这里提供所需要用到的第三方库的码云链接供下载:
可以将~/.vim/plugged/YouCompleteMe/.gitmodules里面每个库的路径换成下面对应的路径,最后执行如下命令即可:
git submodule update --init --recursive
1>python-future
https://gitee.com/mirrors/python-future.git
2>ycmd
https://gitee.com/YouCompleteMe/ycmd.git
3>requests-futures
https://gitee.com/YouCompleteMe/requests-futures
4>requests_deps
- idna:https://gitee.com/mirrors/idna.git
- certifi:https://gitee.com/YouCompleteMe/python-certifi.git
- chardet:https://gitee.com/mirrors/chardet.git
- urllib3:https://gitee.com/mirrors/urllib3.git
- requests:https://gitee.com/mirrors/Requests.git
在所有第三方库下载完成后,就可以进行安装了,命令:
cd ~/.vim/plugged/YouCompleteMe && ./install.py