diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 1b2d59f..759a2ca 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -7,6 +7,9 @@ com! -nargs=+ Bundle \ call vundle#config#bundle() +com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall + \ call vundle#installer#install('!' == '', ) + com! -nargs=? -bang BundleClean \ call vundle#installer#clean('!' == '') diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 7a575ec..b6b6a5e 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -10,6 +10,10 @@ func! vundle#scripts#all(bang, ...) endif endf +func! vundle#scripts#complete(a,c,d) + return join(s:load_scripts(0),"\n") +endf + func! vundle#scripts#install() abort let line = substitute(substitute(getline('.'), '\s*Bundle\s*','','g'), "'",'','g') call vundle#installer#install(0, line)