summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2019-11-30 11:43:06 +0000
committerjohannst <johannes.stoelp@gmail.com>2019-11-30 11:43:06 +0000
commitd7bc67f8cb41f00ff3ec03e5fd8f6afe5f2b59ca (patch)
treea60c2cf0da668c6180a3a0dd0078c31151a6c7eb
parent4d1991fdde86152510327a32e033f14163b82302 (diff)
downloaddotfiles-d7bc67f8cb41f00ff3ec03e5fd8f6afe5f2b59ca.tar.gz
dotfiles-d7bc67f8cb41f00ff3ec03e5fd8f6afe5f2b59ca.zip
bootstrap vundle in vimrc instead installer
-rwxr-xr-xinstall2
-rw-r--r--vimrc15
2 files changed, 15 insertions, 2 deletions
diff --git a/install b/install
index d3f0c39..d7bb343 100755
--- a/install
+++ b/install
@@ -121,8 +121,6 @@ function vimConfigInstaller() {
# link ctags
type ctags >/dev/null 2>&1 && { echo -e "let \$MYCTAGS='$(which ctags)'" >> $vimrc; }
echo -e "source $ABS_BASE_DIR/vimrc" >> $vimrc
- git clone https://github.com/VundleVim/Vundle.vim.git $vim_home/bundle/Vundle.vim &> /dev/null || { echo "Vundle not cloned, using existing!"; }
- vim +PluginUpdate +qall -c "q"
return 0
}
diff --git a/vimrc b/vimrc
index 1c659f1..db3682c 100644
--- a/vimrc
+++ b/vimrc
@@ -12,6 +12,17 @@ endif
nnoremap <leader>ev :edit ~/.vimrc<CR>
nnoremap <leader>sv :source ~/.vimrc<CR>
+"{{{ Vundle bootstrap
+
+let s:needBootstrapVundle=0
+if !filereadable(expand('$VIMHOME/bundle/Vundle.vim/README.md'))
+ echo "Installing Vundle...\n"
+ silent !mkdir -p $VIMHOME/bundle
+ silent !git clone https://github.com/VundleVim/Vundle.vim.git $VIMHOME/bundle/Vundle.vim
+ let s:needBootstrapVundle=1
+endif
+
+"}}}
"{{{ Plugin Management
" to install plugins open vim and run :PluginInstall from within vim OR
@@ -45,6 +56,10 @@ Plugin 'chriskempson/base16-vim'
call vundle#end()
+if s:needBootstrapVundle == 1
+ :PluginUpdate
+endif
+
"}}}
"{{{ Plugin Config