From 8565792679034497dfc81f8f90f02ec9fc1b5099 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 23 Apr 2011 02:23:26 -0500 Subject: [PATCH] allow custom bundle_dir --- autoload/vundle.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 5df24b5..7a2aa8f 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -28,7 +28,7 @@ au Filetype vundle call vundle#scripts#setup_view() au Syntax vim syn keyword vimCommand Bundle -func! vundle#rc() - let g:bundle_dir = expand('$HOME/.vim/bundle') +func! vundle#rc(...) abort + let g:bundle_dir = len(a:000) > 0 ? expand(a:1) : expand('$HOME/.vim/bundle') call vundle#config#init() endf