vim自动配置(YouCompleteMe)

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.git
cd ./vimplus
sudo ./install.sh

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

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

pathogen

运行:

cd ~/.vim/bundle
git 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






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值