This commit is contained in:
gmarik 2010-12-07 21:04:32 -06:00
parent ae759f76c7
commit 280dbd5f71

View File

@ -73,13 +73,8 @@ func! s:helptags(rtp)
return 1 return 1
endf endf
func! s:require(bundle)
exec 'runtime '.bundle.rtpath().'/plugin/*.vim'
endf
func! s:sync(bundle) func! s:sync(bundle)
let git_dir = a:bundle.path().'/.git' let git_dir = a:bundle.path().'/.git'
echo a:bundle.name
if isdirectory(git_dir) if isdirectory(git_dir)
silent exec '!cd '.a:bundle.path().'; git pull' silent exec '!cd '.a:bundle.path().'; git pull'
else else
@ -88,8 +83,10 @@ func! s:sync(bundle)
endf endf
func! s:install(bundle) func! s:install(bundle)
call s:sync(a:bundle) echo a:bundle.name
call s:helptags(a:bundle) call s:sync(a:bundle)
call s:helptags(a:bundle.rtpath())
exec 'runtime! '.a:bundle.rtpath().'/plugin/*.vim'
endf endf
let s:bundle = {} let s:bundle = {}