1、安装用到的软件包

sudo apt-get install vim
sudo apt-get install git
sudo apt-get install subversion
sudo apt-get install python-dev libxml2-dev libxslt-dev
sudo apt-get install gcc
sudo apt-get install cmake

2.安装Vundle

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

编辑 ~/.vimrc, 加入以下:

set nocompatible              " be iMproved, required
filetype off " required set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim' Plugin 'Valloric/YouCompleteMe' call vundle#end() " required
filetype plugin indent on " required

3.安装YouCompleteMe

#下载YouCompleteMe源码
git clone https://github.com/Valloric/YouCompleteMe.git ~/.vim/bundle/YouCompleteMe
cd YouCompleteMe/
#获取YCM的依赖包
git submodule update --init --recursive
cd ~/.vim/bundle/YouCompleteMe
./install.py --clang-completer

参考链接:https://blog.csdn.net/cromma/article/details/52841588

 

最新文章

  1. Eclipse打不开,提示: An error has occurred. see the log file
  2. ios9-通讯录
  3. csharp:Dapper Sample
  4. 【BZOJ】1600: [Usaco2008 Oct]建造栅栏(dp)
  5. 检测zookeeper和kafka是否正常
  6. 3D 灯光介绍
  7. 《第一行代码》学习笔记39-服务Service(6)
  8. dom4j解析xml中指定元素下内容
  9. vim代码粘贴缩进混乱的问题[Linux]
  10. TortoiseGit- 创建本地新分支,提交推送到远程,本地新分支合并到工作分支,提交到远程工作分支等。
  11. echarts Y轴的刻度 跟数据对应---tooltip-formatter
  12. 【go】http实验
  13. ajax 之POST请求,参数序列化
  14. CTEX windedt 打开中文tex乱码问题
  15. 安装unity3d多个版本共存
  16. Sublime Text 3编辑器的SublimeRPEL快捷键设置
  17. Flash:DisplayObject的矩阵旋转(移动/修改注册点,修改旋转点)
  18. [洛谷P5147]随机数生成器
  19. ubuntu换系统下载路径源
  20. 用 Qt 控制 Nikon 显微镜的电动物镜转盘

热门文章

  1. 【2011集训贾志鹏】Crash 的数字表格
  2. Tomasulo algorithm
  3. 关于新手必须要理解的几个名词,cookie、session和token
  4. laravel中如何使用Redis(Redis是什么)
  5. iOS开发之IMP和SEL(方法和类的反射)
  6. 观察属性$watch
  7. codeforces 1129A2-Toy Train
  8. WhaleCTF之隐写-Find
  9. 网络结构解读之inception系列五:Inception V4
  10. 在Apline编译Mariadb 常见错误