-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvimrc.vundle
53 lines (39 loc) · 1.04 KB
/
vimrc.vundle
1
2
3
4
5
6
7
8
9
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
44
45
46
47
48
49
50
51
52
53
"在这里定义所需要的插件
function! VundleSetBundle()
"开始添加自己的插件
"vim-scripts repos
Bundle 'a.vim'
Bundle 'c.vim'
Bundle 'taglist.vim'
Bundle 'minibufexpl.vim'
"no vim-scripts repos
Bundle 'gmarik/vundle'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'terryma/vim-multiple-cursors'
Bundle 'terryma/vim-expand-region'
Bundle 'chenzhiwo/vimrc'
"non github repos
"Bundle 'git://git.wincent.com/command-t.git'
endfunction
"初始化vundle的必要设置
function! Vundleinit()
"关闭文件类型检查
filetype off
"添加runtime path运行时路径
set rtp+=~/.vim/bundle/vundle/
"启动vundle
call vundle#rc()
call VundleSetBundle()
endfunction
"程序开始
"判断vundle是否已经安装,是则初始化vundle,否则安装vundle
if isdirectory(expand("~/.vim/bundle/vundle/"))
call Vundleinit()
else
echo "vundle未安装,安装中……"
!git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
"初始化vundle中……
call Vundleinit()
"安装插件中……
PluginInstall
endif