以前装过一回,没成功,现在再来一次

yourcompleteme git

https://github.com/ycm-core/YouCompleteMe#installation

检查软件版本

vim需>=7.4.
vim --version python需>=
python --version

安装Vundle

git地址:https://github.com/VundleVim/Vundle.vim#about

下载源码:git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

vi .vimrc  将下面内容按自己环境修改贴进去

Put this at the top of your .vimrc to use Vundle. Remove plugins you don't need, they are for illustration purposes.

set nocompatible              " be iMproved, required
filetype off " required " set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim' " The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'} " All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line

vundle安装插件过程

.vim .vimrc将自己需要的插件加入到call vundle#begin() 跟 call vundle#end()之间

例:
call vundle#begin()
Plugin 'Valloric/YouCompleteMe'
call vundle#end()
保存退出 然后输入
vim
::PluginInstall

vim 安装yourcompleteme

在.vimrc加入Plugin 'Valloric/YouCompleteMe'

下载源码:git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe

进入源码目录:cd ~/.vim/bundle/YouCompleteMe

安装第三方包:git submodule update --init --recursive

其中third_party/go/src/golang.org/x/tools' failed因为部分包在go官网会被墙了,

解决参见:https://www.jianshu.com/p/6fe61053c8aa?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source=recommendation

安装:python2 install.py --clang-completer --system-libclang(遇到环境问题一个一个解决)

以下是我缺少的

ERROR: Unable to find executable 'cmake'. CMake is required to build ycmd
yum install cmake -y

最新文章

  1. phpStudy2016 配置多个域名期间遇到的问题
  2. 图解TCP/IP→第2章基础知识
  3. WCF初探-8:WCF服务承载 (上)
  4. Play Framework介绍:控制器层
  5. node Later定时任务
  6. 设置浮点数的显示精度&precision(0)
  7. import,reload,__import__在python中的区别
  8. Java之加密(信息摘要)工具类(依赖:java.security.MessageDigest或org.apache.commons.codec.digest.DigestUtils)
  9. HDU_2047——EOF字符串排序排列问题,递推
  10. U盘安装win7+CentOS7双系统
  11. SpringBoot自动配置原理
  12. Android Studio教程02-应用程序结构图及应用基础
  13. Extjs小总结
  14. C# IE浏览器 判断是否已经打开了指定Url
  15. 在linux系统中实现各项监控的关键技术(2)--内核态与用户态进程之间的通信netlink
  16. mysql 常用 sql
  17. Codeforces 1107 简要题解
  18. table中td 内容超长 自动折行 (含字母数字文字)
  19. 插入节点insertBefore()
  20. Authentication token is no longer valid

热门文章

  1. CAN数据格式-BLF
  2. 对RoboMaster论坛自动签到脚本制作(虽然没什么用)
  3. 第一个Tornado程序
  4. 【转】How to create a test plan
  5. 吴裕雄 Bootstrap 前端框架开发——Bootstrap 排版:设定引用右对齐
  6. jarvisoj fm
  7. Linux命令:netstat命令
  8. shell脚本基础及重定向!
  9. Linux centosVMware shell中的函数、shell中的数组、
  10. Django 学习 之ORM多表操作