vundle按照YouComplete
生活随笔
收集整理的這篇文章主要介紹了
vundle按照YouComplete
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
https://github.com/VundleVim/Vundle.vim
http://www.jianshu.com/p/d908ce81017a?nomobile=yes
http://www.bubuko.com/infodetail-446364.html
步驟
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
.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' 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保存退出后打開vim,在正常模式下輸入
:PluginInstall就會開始自動安裝vundle指定的各種插件。
由于要安裝clang等,安裝過程是非常久的,大概需要一個小時,這個時間完全可以去做些別的。
等安裝好后,在.vim/vundle/YouCompleteMe目錄下多了一堆目錄和文件。
3. 使用YouCompleteMe
YouCompleteMe進行補全時需要查找一個?ycm_global_ycm_extra_conf文件。可以每次在工作目錄中放置這個文件,也可以設置全局。全局設置要在.vimrc中添加一行
let g:ycm_global_ycm_extra_conf=‘~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py‘轉載于:https://www.cnblogs.com/znsongshu/p/6248213.html
總結
以上是生活随笔為你收集整理的vundle按照YouComplete的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: CTF之信息泄漏
- 下一篇: Java8 lambda支持