diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 632a5b2..b4f195a 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -7,6 +7,9 @@ com! -nargs=+ Bundle \ call vundle#config#bundle() +com! -nargs=1 BundleCommand +\ call vundle#installer#command() + com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall \ call vundle#installer#new('!' == '', ) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index ce9db38..a629f87 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -11,6 +11,10 @@ func! vundle#installer#new(bang, ...) abort call vundle#config#require(bundles) endf +func! vundle#installer#command(cmd) + silent execute '!cd ~/.vim/bundle && ' . a:cmd + redraw! +endf func! s:process(bang, cmd) let msg = ''