vim自动配置(YouCompleteMe)

来源:互联网 发布:java微信 编辑:程序博客网 时间:2024/05/16 15:35

vim自动配置: https://github.com/chxuan/vimplus

介绍

由于经常使用vim编写c++程序,为了能更顺畅的编写c++代码,需要对vim做了一些自动配置,接下来将具体展示我对vim配置的简化配置。

效果

enter image description here

安装

Ubuntu x64 CentOS x64 安装(支持 Ubuntu 16.04 LTS)

git clone https://github.com/chxuan/vimplus.gitcd ./vimplussudo ./install.sh

运行install.sh 脚本将会自动安装并配置vim, 安装大概需要40分钟~n小时,主要消耗在下载安装配置 Valloric/YouCompleteMe 上。

javacomplete2补全插件(YouCompleteMe安装完成后)

pathogen

运行:

cd ~/.vim/bundlegit clone https://github.com/artur-shaik/vim-javacomplete2.git

Vundle

添加.vimrc:

Plugin 'artur-shaik/vim-javacomplete2'

error1:YouComplete unavaliable:no module named "futrue"-->各种方法均无效时(重新编译YCM实在漫长)

#检查完整性(~/.vim/bundle/YouCompleteMe/)

$git submodule update --init --recursive

error2:YCM core library not detected, you need to compile YCM before using it.

$./install.py -- clang-completer






0 0
原创粉丝点击