From 618573c99664524ad677e5cd97dcfe6a65ba2e96 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 19 Mar 2011 16:48:55 -0500 Subject: [PATCH] display counts --- autoload/vundle/scripts.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index bf811a9..daa56bf 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -1,13 +1,15 @@ func! vundle#scripts#all(bang, ...) let info = ['"Keymap: i - Install bundle; c - Cleanup; r - Refine list'] if a:1== '' " whether refine search string given - call s:display(info + ['"Vim scripts: '], s:load_scripts(a:bang)) + let matches = s:load_scripts(a:bang) + call s:display(info, matches) else let matches = filter(s:load_scripts(a:bang), 'v:val =~? "'.escape(a:1,'"').'"') let @/=a:1 call s:display(info + ['"Search results for: '.a:1], matches) redraw endif + echo len(matches).' bundles found' endf func! vundle#scripts#complete(a,c,d)