complete BundleInstall command
This commit is contained in:
parent
6d1d018bf7
commit
f0d8f98351
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user