本文主要是介绍How to install YCM on Ubuntu16.04 LTS,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
文章目录
- 1 Steps
- 1.1 Setup Vundle
- 1.2 Install Vundle
- 1.3 Install YCM core
- 1.3.1 setup languages u want
- 1.3.2 main work
- 2 Reference
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 clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
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 `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
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
- Go
- node
- java
1.3.2 main work
cd /home/tzx/.vim/bundle/YouCompleteMe
./install.py --clang-completer --go-completer --ts-completer --java-completer
2 Reference
- VundleVim
- YouCompleteMe
这篇关于How to install YCM on Ubuntu16.04 LTS的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!