Browse code

vimrc - v0.3 - Detect Vundle

Fred authored on07/07/2019 17:46:01
Showing1 changed files
... ...
@@ -1,6 +1,7 @@
1 1
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2 2
 " Versions
3 3
 "
4
+" v0.3 - 2019-07-07: Vundle installation detection
4 5
 " v0.2 - 2015-02-19: Vundle added
5 6
 " v0.1 - 2014-10-19: variable for screen integration set / commands for (un)commenting block added / no backup behavior
6 7
 " v0.0 - 2012-06-09: current vimrc fetch from the Internet
... ...
@@ -81,34 +82,38 @@ set t_Co=256
81 82
 " Vundle "
82 83
 "========"
83 84
 
84
-set nocompatible              " be iMproved, required
85
-filetype off                  " required
86
-
87
-" set the runtime path to include Vundle and initialize
88
-set rtp+=~/.vim/bundle/Vundle.vim
89
-call vundle#begin()
90
-" alternatively, pass a path where Vundle should install plugins
91
-"call vundle#begin('~/some/path/here')
92
-
93
-" let Vundle manage Vundle, required
94
-Plugin 'gmarik/Vundle.vim'
95
-
96
-Plugin 'scrooloose/nerdtree'
97
-" All of your Plugins must be added before the following line
98
-call vundle#end()            " required
99
-filetype plugin indent on " and turn it back on!
100
-
101
-" To ignore plugin indent changes, instead use:
102
-"filetype plugin on
103
-"
104
-" Brief help
105
-" :PluginList       - lists configured plugins
106
-" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
107
-" :PluginSearch foo - searches for foo; append `!` to refresh local cache
108
-" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
109
-"
110
-" see :h vundle for more details or wiki for FAQ
111
-" Put your non-Plugin stuff after this line
85
+if isdirectory(expand("~/.vim/bundle/Vundle.vim"))
86
+    set nocompatible              " be iMproved, required
87
+    filetype off                  " required
88
+
89
+    " set the runtime path to include Vundle and initialize
90
+    set rtp+=~/.vim/bundle/Vundle.vim
91
+    call vundle#begin()
92
+    " alternatively, pass a path where Vundle should install plugins
93
+    "call vundle#begin('~/some/path/here')
94
+
95
+    " let Vundle manage Vundle, required
96
+    Plugin 'gmarik/Vundle.vim'
97
+
98
+    Plugin 'scrooloose/nerdtree'
99
+    " All of your Plugins must be added before the following line
100
+    call vundle#end()            " required
101
+    filetype plugin indent on    " and turn it back on!
102
+
103
+    " To ignore plugin indent changes, instead use:
104
+    "filetype plugin on
105
+    "
106
+    " Brief help
107
+    " :PluginList       - lists configured plugins
108
+    " :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
109
+    " :PluginSearch foo - searches for foo; append `!` to refresh local cache
110
+    " :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
111
+    "
112
+    " see :h vundle for more details or wiki for FAQ
113
+    " Put your non-Plugin stuff after this line
114
+else
115
+    echom "Vundle not installed"
116
+endif
112 117
 
113 118
 
114 119