vim 通过bundle安装YouCompleteMe自动补全插件

1:vim .vimrc配置
加入:

	Bundle 'Valloric/YouCompleteMe'
	let g:ycm_server_python_interpreter='/usr/bin/python'
	let g:ycm_global_ycm_extra_conf='~/.vim/.ycm_extra_conf.py'
vim命令行模式执行安装插件命令
:PluginInstall

2:安装便宜需要的环境

	sudo apt install cmake
	sudo apt-get install -y build-essential
	sudo apt install python-dev
	./install.sh --clang-completer

3:拷贝配置文件

cp ~/.vim/bundle/YouCompleteMe/third_party/ycmd/examples/.ycm_extra_conf.py ~/.vim/

你可能感兴趣的:(Linux)