使用Vundle安装YouCompleteMe

1. 下载Vundle$ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim2. 配置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 ‘gmarik/Vundle.vim’Plugin ‘Valloric/YouCompleteMe’" The following are examples of different formats supported." Keep Plugin commands between vundle#begin/end." plugin on GitHub repo" Plugin ‘tpope/vim-fugitive’" plugin from " Plugin ‘L9’" Git plugin not hosted on GitHub" Plugin ‘git://git.wincent.com/command-t.git’" git repos on your local machine (i.e. when working on your own plugin)" Plugin ‘file:///home/gmarik/path/to/plugin’" The sparkup vim script is in a subdirectory of this repo called vim." Pass the path to set the runtimepath properly." Plugin ‘rstacruz/sparkup’, {‘rtp’: ‘vim/’}" Avoid a name conflict with L9" Plugin ‘user/L9’, {‘name’: ‘newL9’}" All of your Plugins must be added before the following linecall vundle#end() " requiredfiletype 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 line3. 安装插件运行vim,输入:PluginInstall。或者在终端输入命令行vim +PluginInstall +qall。4. 编译安装YouCompleteMecd ~/.vim/bundle/YouCompleteMe./install.sh –clang-completer5.Reference

https://github.com/gmarik/Vundle.vim

https://github.com/Valloric/YouCompleteMe

,最好的节约是珍惜时间,最大的浪费是虚度年华。

使用Vundle安装YouCompleteMe

相关文章:

你感兴趣的文章:

标签云: