安装YouCompleteMe
1. from software center
1 $ apt-get install vim vim-youcompleteme vim-addon-manager
2 $ vam install youcompleteme
3 修改 /usr/lib/vim-youcompleteme/ycm_extra_conf.py
参考 https://github.com/Valloric/YouCompleteMe#completion-doesnt-work-with-the-c-standard-library-headers
https://github.com/Valloric/ycmd/blob/master/cpp/ycm/.ycm_extra_conf.py
$ echo | clang -v -E -x c++ -
4 下面是个人在.vimrc中的配置
"----------------youcompleteme config------------------------------
let g:ycm_autoclose_preview_window_after_insertion=1
"let g:ycm_seed_identifiers_with_syntax=1
"let g:ycm_cache_omnifunc=0
"nnoremap <C-]> :w<CR>:YcmCompleter GoToDefinitionElseDeclaration<CR>
nnoremap <C-]> :YcmCompleter GoToDefinitionElseDeclaration<CR>
let g:ycm_key_invoke_completion='<S-Space>'
5 若你设置了 let g:ycm_autoclose_preview_window_after_insertion=1
那么会有一个问题,软件源中的vim-youcompleteme版本可能较低,是有bug的,得修改一个脚本
https://github.com/Valloric/YouCompleteMe/pull/1103/files
2. from https://github.com/Valloric/YouCompleteMe
1. vundle
2. after vundleinstall,
in bottom line: ycm....[so|a|..] and another lib is missing , you don't care it.
you had better do ( maybe vundle is some error) the following cmd in .vim/bundle/YouCompleteMe/
$ git submodule update --init --recursive
wait about one hour
3. llvm+clang
4 config, make etc.
大家在安装过程中有任何问题,可以在下面回复。
安装YouCompleteMe的更多相关文章
- Ubuntu下如何安装YouCompleteMe插件
Ubuntu安装YouCompleteMe插件 简介: 众所周知, Vim是一款linux下的文本编辑器, 其最基础的工作就是编辑文本,而不管该文本的内容是什么. 在Vim被程序员所使用后,其慢慢的被 ...
- centos安装youcompleteme
哈哈,我又回来了,简单的重新装了一边虚拟机,又把vim配置了一遍,这回有信心把youcomplete的安装方法贴出来了,先给个权威的链接,然后给出具体步骤,保证没问题可以安装成功 http://www ...
- vim安装YouCompleteMe 插件
要安装YouCompleteMe ,vim须支持python.看是否支持,可以在vim中:version 查看, 如果python前有+号,就是支持,减号就是不支持. 如果不支持,需要以编译安装方式重 ...
- 在deepin上安装YouCompleteMe
详细安装步骤在github上有,https://github.com/Valloric/YouCompleteMe,我这里是自己总结的简化版安装步骤. 步骤1.安装Vundle 首先,clone到本地 ...
- windows7 Cygwin 下安装 YouCompleteMe 插件
原创文章,欢迎指正!转载请注明~ 从上周就开始想在cygwin上安装YouCompleteMe插件,按照GITHUB上的官方教程安装,由于自己的理解失误,一直搞不清是按照在windows上安装还是按照 ...
- 给vim安装YouCompleteMe
要安装YouCompleteMe ,vim须支持python.看是否支持,可以在vim中:version 查看, 如果python前有+号,就是支持,减号就是不支持. 如果不支持,需要以编译安装方式重 ...
- centos 在安装YouCompleteMe时提示 Fatal : pyconfig.h No such file or directory
问题:centos 在安装YouCompleteMe时提示 Fatal : pyconfig.h No such file or directory 解决:安装python-devel yum ins ...
- ubuntu 下安装 YouCompleteMe
1.安装用到的软件包 sudo apt-get install vim sudo apt-get install git sudo apt-get install subversion sudo ap ...
- Ubuntu12.04安装YouCompleteMe插件
以前用的都是ctags+omnicomplete+acp的方式,这次换成clang自解析的方式尝试一把. 自从知道了Vundle,妈妈再也不用担心我麻烦地下插件了 0. 安装必要组件 sudo apt ...
随机推荐
- 安装boost库(Windows)
1. 下载 官网:http://www.boost.org/ 主页:https://sourceforge.net/projects/boost/ 当前最新版:V1.61.0 2. 编译 首先,生成b ...
- tomcat源码剖析
最近看Tomcat的源码的节奏还算是挺紧凑的,给人的感觉,tomcat的代码相对以前读的jetty的代码显得更有条理一些...当然这也是有可能是因为自己看的jetty的版本是比较老的,而看的Tomca ...
- ACM知识点
基础算法 高精 模拟 分治 贪心 排序 DFS 迭代加深搜索 BFS 双向BFS 动态规划 DAG上DP 树上DP 线性DP 图算法 最短路 FLYD DJATL BF 最大流 Dinic ISAP ...
- android需知小细节
1. 布局文件命名不能包含大写字母,特殊字符.MyImageView.xml错误. 2. simpleAdapter适配器参数的含义: 3. gridview gridview的三个重要的属性: 4 ...
- 洛谷P3379 【模板】最近公共祖先(LCA)
P3379 [模板]最近公共祖先(LCA) 152通过 532提交 题目提供者HansBug 标签 难度普及+/提高 提交 讨论 题解 最新讨论 为什么还是超时.... 倍增怎么70!!题解好像有 ...
- Xformode的坑
http://blog.csdn.net/u010335298/article/details/51983420
- 2016-09-19: linux后台运行
linux后台运行命令两种方式: 1. command & : 后台运行,你关掉终端会停止运行 2. nohup command & : 后台运行,你关掉终端也会继续运行 简介 L ...
- 用world写blog
一级目录 怎么写呢? 这个和markdown那个更加方便呢? 据说插入表格有问题 我试一试 二级目录 这个大小还不错 添加第三季目录呢 三级目录 添加目录必须要用鼠标么? #inclu ...
- window 10 用composer安装 基于 Laravel 5.3 的 Coaster CMS Curl错误77解决
安装教程来自 http://laravelacademy.org/post/6547.html 1.系统环境windows 10 nodejs3.9.2 composer1.2.4(国内镜像) Cmd ...
- C# 加密解密文件
using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptograph ...