complete BundleInstall command

This commit is contained in:
gmarik 2011-03-06 15:15:03 -06:00
parent 6d1d018bf7
commit f0d8f98351
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -4,6 +4,10 @@ func! vundle#scripts#search(bang,search_str)
call s:display(reverse(results), a:search_str)
endf
func! vundle#scripts#complete(a,c,d)
return join(s:load_scripts(0),"\n")
endf
func! s:display(results,search_str)
if !exists('s:buff') | let s:buff = tempname() | endif
call writefile(['" Search results for: '.a:search_str] + a:results, s:buff)