Lazy loading plugins with begin/end block

This commit is contained in:
Jacobo de Vera
2014-04-07 00:59:23 +02:00
parent 6545681f56
commit c20c90d867
2 changed files with 21 additions and 3 deletions

View File

@@ -64,3 +64,13 @@ func! vundle#rc(...) abort
let g:vundle_changelog = ['Updated Plugins:']
call vundle#config#init()
endf
func! vundle#begin(...) abort
let g:vundle_lazy_load = 1
call call('vundle#rc', a:000)
endf
func! vundle#end(...) abort
unlet g:vundle_lazy_load
call vundle#config#activate_bundles()
endf