Browse Source

after downloading plugin require ./bundle/plugin_name.vim

- in case bundle has some scripts
- ie Command-T may provide compilation scripts, in that case they should
define augroup bundle#command-t. see test/vimrc for example
events
gmarik 15 years ago
parent
commit
9291b006bf
2 changed files with 5 additions and 0 deletions
  1. +1
    -0
      autoload/vundle.vim
  2. +4
    -0
      autoload/vundle/config.vim

+ 1
- 0
autoload/vundle.vim View File

@ -45,6 +45,7 @@ augroup vundle#bundle
au! au!
au User BundleInstallPre echo 'Installing '.g:bundle.name au User BundleInstallPre echo 'Installing '.g:bundle.name
au User BundleInstall call vundle#installer#sync(1, g:bundle) au User BundleInstall call vundle#installer#sync(1, g:bundle)
au User BundleInstall call vundle#config#configure(g:bundle)
au User BundleInstallPost echo 'Installed '.g:bundle.name au User BundleInstallPost echo 'Installed '.g:bundle.name
au User BundleInstalled echo 'Already Installed '.g:bundle.name au User BundleInstalled echo 'Already Installed '.g:bundle.name


+ 4
- 0
autoload/vundle/config.vim View File

@ -11,6 +11,10 @@ func! vundle#config#init()
let g:vundle#bundles = [] let g:vundle#bundles = []
endf endf
func! vundle#config#configure(bundle) abort
return s:source(a:bundle.rtpath().'/bundle/'.a:bundle.name.'.vim')
endf
func! vundle#config#source(bundles) abort func! vundle#config#source(bundles) abort
for b in a:bundles for b in a:bundles
" TODO: should this be here? " TODO: should this be here?


Loading…
Cancel
Save