YouCompleteMe_Installation
来源:互联网 发布:iphone蓝牙不支持mac 编辑:程序博客网 时间:2024/05/21 12:15
YouCompleteMe安装教程
1. 安装vundle
Vundle用于vim插件管理软件,安装过程如下:
* 下载Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
- 设置Vundle
在.vimrc
开头添加如下内容:
set nocompatible " be iMproved, requiredfiletype off " required" set the runtime path to include Vundle and initializeset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()" alternatively, pass a path where Vundle should install plugins"call vundle#begin('~/some/path/here')" let Vundle manage Vundle, requiredPlugin 'VundleVim/Vundle.vim'" All of your Plugins must be added before the following linecall vundle#end() " requiredfiletype plugin indent on " required
之后运行vim
并且运行:PluginInstall
2. 利用Vundle安装YouCompleteMe
继续在.vimrc
添加如下内容,表示安装YouComplete插件
Plugin 'Valloric/YouCompleteMe'
打开vim
并且运行:PluginInstall
3. 编译YCM
- 需要安装编译工具:
sudo apt-get install build-essential cmake
和Python头文件:
sudo apt-get install python-dev python3-dev
- 编译YCM
cd ~/.vim/bundle/YouCompleteMe./install.py --clang-completer
其中的--clang-completer
表示开启对C系列语言的支持。
此外它还支持Go、JavaScript等,编译选项分别为:--gocode-completer
、--tern-completer
。
或者使用--all
开启全部的选项。
参考网址
- https://github.com/VundleVim/Vundle.vim#about
- https://github.com/Valloric/YouCompleteMe
0 0
- YouCompleteMe_Installation
- Android动画-属性动画
- 记忆化搜索也是递归剪枝的一种,他记录计算过的状态节点如果遇到就爆栈不再深入,防止了重复计算,同时最优性剪枝也有相同的意味
- c++Primer简单回顾--面向对象的类
- Python学习 for循环语句的使用
- 潮汕特产
- YouCompleteMe_Installation
- 2016 acm香港网络赛 A题 A+B Problem (FFT)
- 一步一步教你用 Vue.js + Vuex 制作专门收藏微信公众号的 app
- 12年程序员职业生涯的经验
- Codeforces Round #359 (Div. 2)D. Kay and Snowflake
- 第七天
- 理解JNDI中 java:comp/env/jdbc/datasource 与 jdbc/datasource 的不同之处。
- 在网站页面标题显示小图片
- STM32开发环境(1)----开发环境选择