How to install YCM on Ubuntu16.04 LTS
原创
©著作权归作者所有:来自51CTO博客作者Digital2Slave的原创作品,请联系作者获取转载授权,否则将追究法律责任
文章目录
1 Steps
1.1 Setup Vundle
sudo apt-get update
sudo apt-get upgrade
sudo apt install build-essential cmake git curl python3-dev
git
Configre .vimrc
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 'Valloric/YouCompleteMe'
" 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 `!` :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!`
" see :h vundle for more details or wiki for FAQ
"
1.2 Install Vundle
Launch vim
and run :PluginInstall
OR:
To install from command line: vim +PluginInstall +qall
1.3 Install YCM core
1.3.1 setup languages u want
1.3.2 main work
2 Reference