From 4c9ebe9c31e3f53bce65c4a9f0b284d7a763a56f Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 5 Aug 2014 01:29:51 +0900 Subject: [PATCH] Add -bar option to commands --- plug.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plug.vim b/plug.vim index 6fdc61d..3e344c3 100644 --- a/plug.vim +++ b/plug.vim @@ -102,12 +102,12 @@ function! plug#begin(...) let g:plugs_order = [] command! -nargs=+ -bar Plug call s:add() - command! -nargs=* -bang -complete=customlist,s:names PlugInstall call s:install(!empty(''), ) - command! -nargs=* -bang -complete=customlist,s:names PlugUpdate call s:update(!empty(''), ) - command! -nargs=0 -bang PlugClean call s:clean('' == '!') - command! -nargs=0 PlugUpgrade if s:upgrade() | execute 'source '. s:me | call s:upgrade_specs() | endif - command! -nargs=0 PlugStatus call s:status() - command! -nargs=0 PlugDiff call s:diff() + command! -nargs=* -bar -bang -complete=customlist,s:names PlugInstall call s:install('' == '!', ) + command! -nargs=* -bar -bang -complete=customlist,s:names PlugUpdate call s:update('' == '!', ) + command! -nargs=0 -bar -bang PlugClean call s:clean('' == '!') + command! -nargs=0 -bar PlugUpgrade if s:upgrade() | execute 'source '. s:me | call s:upgrade_specs() | endif + command! -nargs=0 -bar PlugStatus call s:status() + command! -nargs=0 -bar PlugDiff call s:diff() return 1 endfunction