vim自动配置(YouCompleteMe) - Go语言中文社区

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





版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/CDUT100/article/details/70832707
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2019-09-05 14:27:59
  • 阅读 ( 2619 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

推荐文章

猜你喜欢