From b665bb040f9973f91da218afa069e474ce36bfb0 Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Fri, 30 Nov 2012 15:37:40 +0100 Subject: [PATCH] vim: check for vundle before adding bundles --- vim/vimrc | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 91b6a21..6b50765 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -2,30 +2,32 @@ set nocompatible " VUNDLE " { -filetype off " required! +if filereadable(expand("$HOME/.vim/bundle/vundle/README.md")) + filetype off " required! -set rtp+=~/.vim/bundle/vundle/ -call vundle#rc() + set rtp+=~/.vim/bundle/vundle/ + call vundle#rc() -" let Vundle manage Vundle -" required! -Bundle 'gmarik/vundle' + " let Vundle manage Vundle + " required! + Bundle 'gmarik/vundle' -Bundle 'xolox/vim-session' -Bundle 'tpope/vim-rails' -Bundle 'tpope/vim-markdown' + Bundle 'xolox/vim-session' + Bundle 'tpope/vim-rails' + Bundle 'tpope/vim-markdown' -Bundle "garbas/vim-snipmate" -" snipMate dependencies -Bundle "MarcWeber/vim-addon-mw-utils" -Bundle "tomtom/tlib_vim" -Bundle "honza/snipmate-snippets" + Bundle "garbas/vim-snipmate" + " snipMate dependencies + Bundle "MarcWeber/vim-addon-mw-utils" + Bundle "tomtom/tlib_vim" + Bundle "honza/snipmate-snippets" -Bundle 'Gundo' -Bundle 'The-NERD-tree' -Bundle 'The-NERD-Commenter' -Bundle 'closetag.vim' -Bundle 'VisIncr' + Bundle 'Gundo' + Bundle 'The-NERD-tree' + Bundle 'The-NERD-Commenter' + Bundle 'closetag.vim' + Bundle 'VisIncr' +endif " } filetype plugin indent on