YouCompleteMe代码自动补全
2016-04-13 13:47
225 查看
在vim中安装YouCompleteMe插件,可以做出类似IDE的补全效果:
很方便。
安装步骤可以参考这里:
http://www.alexeyshmalko.com/2014/youcompleteme-ultimate-autocomplete-plugin-for-vim/
基本上就是如下几个步骤:
https://github.com/rasendubi/dotfiles/blob/master/.vim/.ycm_extra_conf.py
安装过程需要注意几点:
1、vim一定要7.3或者以上的版本,如果没有直接在jumbo上安装
2、下载后git代码后, install.sh 安装会提示已经过期,可以改用install.py安装
很方便。
安装步骤可以参考这里:
http://www.alexeyshmalko.com/2014/youcompleteme-ultimate-autocomplete-plugin-for-vim/
基本上就是如下几个步骤:
cd ~/.vim/bundle git clone https://github.com/Valloric/YouCompleteMe.git cd YouCompleteMe git submodule update --init --recursive ./install.sh --clang-completer
需要在vim中配置下模板路径:
let g:ycm_global_ycm_extra_conf = "~/.vim/.ycm_extra_conf.py"
模本内容可用下面这个:
https://github.com/rasendubi/dotfiles/blob/master/.vim/.ycm_extra_conf.py
安装过程需要注意几点:
1、vim一定要7.3或者以上的版本,如果没有直接在jumbo上安装
2、下载后git代码后, install.sh 安装会提示已经过期,可以改用install.py安装
相关文章推荐
- C#默认以管理员身份运行程序
- spring 扫描不到jar中class文件的原因和解决方法
- Java中的try/catch/finally
- JAVA中int、String的类型转换
- 种子转磁力的方法
- Python单例模式的4种实现方法
- 经典的C++库【转帖】
- 通过java发送邮件
- J2EE_struts2_入门级了解
- 牛客网-华为机试在线训练-3.数字颠倒
- 多线程(2)-java线程的创建与启动
- PHP7中php.ini、php-fpm和www.conf的配置
- 关于Eclipse安装EGit插件失败的解决办法
- 【java】java线程并发测试模版
- Visual Studio 2013 自定义工具 MSLinqToSQLGenerator失败的解决方案
- java 获取硬件信息
- C++运算符重载
- C++运算符重载
- Cordova 核心java类说明
- 【深入Java虚拟机】之四:类加载机制 | Java虚拟机