码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu Vim YouCompleteMe 安装

时间:2016-05-10 12:40:11      阅读:276      评论:0      收藏:0      [点我收藏+]

标签:

0. 必要工具安装

  sudo apt-get install build-essential cmake

  

1. 安装 vundle

  mkdir ~/.vim/bundle

  git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

2.编辑 .vimrc

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" alternatively, pass a path where Vundle should install plugins
"let path = ‘~/some/path/here‘
"call vundle#rc(path)

" let Vundle manage Vundle, required
Plugin gmarik/vundle

Bundle Valloric/YouCompleteMe

 

 

3.安装 youcompleteme

  cd .vim/bundle/

  git clone https://github.com/Valloric/YouCompleteMe.git

  ./install.py --clang-completer

4.vim 开启 python 支持

  sudo apt-get install vim-gnome-py2

Ubuntu Vim YouCompleteMe 安装

标签:

原文地址:http://www.cnblogs.com/firemage/p/5477185.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!