Allow updating specific plugins.

This commit is contained in:
Shahaf Arad
2015-02-16 20:03:37 +02:00
committed by Jacobo de Vera
parent a864467285
commit 1df432aecf
4 changed files with 40 additions and 9 deletions

View File

@@ -39,7 +39,12 @@ endf
" candidates, see also :h command-completion-custom
" ---------------------------------------------------------------------------
func! vundle#scripts#complete(a,c,d)
return join(s:load_scripts(0),"\n")
" Return only installed plugins if updating
if match(a:c, '\v^Plugin%(Install!|Update)') == 0
return join(map(copy(g:bundles), 'v:val.name'), "\n")
else
return join(s:load_scripts(0),"\n")
endif
endf