@ -13,15 +13,19 @@ endf
func ! vundle #config #require ( bundles ) abort
func ! vundle #config #require ( bundles ) abort
for b in a :bundles
for b in a :bundles
" TODO: should this be here?
call s :rtp_add ( b .rtpath ( ) )
call s :rtp_add ( b .rtpath ( ) )
call s :rtp_add ( g :vundle #bundle_dir )
" TODO: it has to be relative rtpath, not bundle.name
exec 'runtime! ' .b .name .'/plugin/*.vim'
exec 'runtime! ' .b .name .'/after/*.vim'
call s :rtp_rm ( g :vundle #bundle_dir )
" load plugin
for s in s :glob ( b .rtpath ( ) .'/plugin/**/*.vim' )
exec 'source ' .s
endfor
endfor
endfor
endf
endf
func ! s :glob ( pattern )
return split ( glob ( a :pattern ) , "\n" )
endf
func ! vundle #config #init_bundle ( bang , name , opts )
func ! vundle #config #init_bundle ( bang , name , opts )
let opts = extend ( s :parse_options ( a :bang , a :opts ) , s :parse_name ( substitute ( a :name , "['" .'"]\+' , '' , 'g' ) ) , 'keep' )
let opts = extend ( s :parse_options ( a :bang , a :opts ) , s :parse_name ( substitute ( a :name , "['" .'"]\+' , '' , 'g' ) ) , 'keep' )
return extend ( opts , copy ( s :bundle ) )
return extend ( opts , copy ( s :bundle ) )