add bundle.rtpath to &rtp on require

This commit is contained in:
gmarik 2011-03-06 17:21:43 -06:00
parent b3216ac594
commit fb77c082e6

View File

@ -13,6 +13,7 @@ func! vundle#config#init()
endf endf
func! vundle#config#require(bundle) func! vundle#config#require(bundle)
call s:rtp_add(a:bundle.rtpath())
call s:rtp_add(g:bundle_dir) call s:rtp_add(g:bundle_dir)
" TODO: it has to be relative rtpath, not bundle.name " TODO: it has to be relative rtpath, not bundle.name
exec 'runtime! '.a:bundle.name.'/plugin/*.vim' exec 'runtime! '.a:bundle.name.'/plugin/*.vim'