From 341102fe9f26e3f4207f14e097348d3bd6831b0d Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 27 Dec 2017 13:00:58 +0100 Subject: health.vim: remove :CheckHealth command For back-compat, :CheckHealth runs :checkhealth. But don't define :CheckHealth explicitly, it adds noise to wildmenu completion. Completion of healthchecks doesn't yet work with :checkhealth, this is a regression but it needs to be implemented for :checkhealth rather than keeping :CheckHealth around. --- runtime/plugin/health.vim | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'runtime/plugin') diff --git a/runtime/plugin/health.vim b/runtime/plugin/health.vim index e3482cb0fe..66ae8fb239 100644 --- a/runtime/plugin/health.vim +++ b/runtime/plugin/health.vim @@ -1,8 +1 @@ -function! s:complete(lead, _line, _pos) abort - return sort(filter(map(globpath(&runtimepath, 'autoload/health/*', 1, 1), - \ 'fnamemodify(v:val, ":t:r")'), - \ 'empty(a:lead) || v:val[:strlen(a:lead)-1] ==# a:lead')) -endfunction - -command! -nargs=* -complete=customlist,s:complete CheckHealth - \ call health#check([]) +autocmd CmdUndefined CheckHealth checkhealth -- cgit From 8fc437ef43dbaccf873c9af448495387410e465c Mon Sep 17 00:00:00 2001 From: zandrmartin Date: Wed, 17 Jan 2018 19:50:17 +0000 Subject: runtime: UpdateRemotePlugins: allow bar (#7865) --- runtime/plugin/rplugin.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/plugin') diff --git a/runtime/plugin/rplugin.vim b/runtime/plugin/rplugin.vim index ca15ec82d1..56163c894e 100644 --- a/runtime/plugin/rplugin.vim +++ b/runtime/plugin/rplugin.vim @@ -56,6 +56,6 @@ function! s:LoadRemotePlugins() abort endif endfunction -command! UpdateRemotePlugins call remote#host#UpdateRemotePlugins() +command! -bar UpdateRemotePlugins call remote#host#UpdateRemotePlugins() call s:LoadRemotePlugins() -- cgit