关于这方面我找的一些参考文章:
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表示正在安装,安装成功后那一行前面会变"+"号