Ubuntu Vim YouCompleteMe 安装

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

上一篇:UE4编程之C++创建一个FPS工程(二)角色网格、动画、HUD、子弹类


下一篇:js判断时间段