關於這方面我找的一些參考文章:
Linux之CentOS 6編譯安裝vim添加Lua、Perl、Ruby、Python的支持和YouCompleteMe自動補全功能(我參照了這裏的方法安裝的vundle)
vundle命令
- :BundleList -列舉出列表中(.vimrc中)配置的所有插件
- :BundleInstall -安裝列表中全部插件
- :BundleInstall! -更新列表中全部插件
- :BundleSearch foo -查找foo插件
- :BundleSearch! foo -刷新foo插件緩存
- :BundleClean -清除列表中沒有的插件 (若要清除,則註釋掉.vimrc中的對應內容,再執行此命令即可)
- :BundleClean! -清除列表中沒有的插件
安裝vundle
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
[root@LookBack-server-OL03
~] #
mkdir ~/.vim/bundle/ [root@LookBack-server-OL03
~] #
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle ###在.vimrc
中添加bundle的配置 [root@LookBack-server-OL03
~] #
cat .vimrc set nocompatible
" be iMproved filetype
off " required! set rtp+=~/.vim /bundle/vundle/ call
vundle #rc() " let Vundle
manage Vundle Bundle 'gmarik/vundle' "my
Bundle here: " "
original repos on github Bundle 'kien/ctrlp.vim' Bundle 'sukima/xmledit' Bundle 'sjl/gundo.vim' Bundle 'jiangmiao/auto-pairs' Bundle 'klen/python-mode' Bundle 'Valloric/ListToggle' Bundle 'SirVer/ultisnips' "Bundle 'Valloric/YouCompleteMe' Bundle 'scrooloose/syntastic' Bundle 't9md/vim-quickhl' "Bundle 'Lokaltog/vim-powerline' Bundle 'scrooloose/nerdcommenter' ".................................. "
vim-scripts repos Bundle 'YankRing.vim' Bundle 'vcscommand.vim' Bundle 'ShowPairs' Bundle 'SudoEdit.vim' Bundle 'EasyGrep' Bundle 'VOoM' Bundle 'VimIM' ".................................. "
non github repos "
Bundle 'git://git.wincent.com/command-t.git' "...................................... filetype
plugin indent on ###然後執行 [root@LookBack-server-OL03
~] #
vim +BundleInstall +qall |
Processing表示正在安裝,安裝成功後那一行前面會變"+"號