Browse Source

added BundleLoad to load bundles after startup

pull/133/head
ralesi 14 years ago
committed by ralesi
parent
commit
999860812d
2 changed files with 13 additions and 0 deletions
  1. +3
    -0
      autoload/vundle.vim
  2. +10
    -0
      autoload/vundle/installer.vim

+ 3
- 0
autoload/vundle.vim View File

@ -7,6 +7,9 @@
com! -nargs=+ Bundle
\ call vundle#config#bundle(<args>)
com! -nargs=+ BundleLoad
\ call vundle#installer#load(<args>)
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall
\ call vundle#installer#new('!' == '<bang>', <q-args>)


+ 10
- 0
autoload/vundle/installer.vim View File

@ -11,6 +11,16 @@ func! vundle#installer#new(bang, ...) abort
call vundle#config#require(bundles)
endf
func! vundle#installer#load(...)
echom join(a:000,'')
let bundles = (a:0 == '') ?
\ g:bundles :
\ map(copy(a:000), 'vundle#config#bundle(v:val, {})')
call vundle#config#require(bundles)
" apply newly loaded ftbundles to currently open buffers
echom join(bundles,'')
doautoall BufRead
endf
func! s:process(bang, cmd)
let msg = ''


Loading…
Cancel
Save