Browse Source

Simplify logic for require newly installed bundles

pull/98/head
Rainux Luo 14 years ago
parent
commit
e0743e1e57
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      autoload/vundle/config.vim

+ 3
- 5
autoload/vundle/config.vim View File

@ -15,12 +15,10 @@ endf
func! vundle#config#require(bundles) abort
for b in a:bundles
call s:rtp_add(b.rtpath())
call s:rtp_add(g: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:bundle_dir)
endfor
" It's OK to do this since every plugin prevent itself be loaded twice
runtime! plugin/*.vim
runtime! after/*.vim
endf
func! vundle#config#init_bundle(name, opts)


Loading…
Cancel
Save