display counts

This commit is contained in:
gmarik 2011-03-19 16:48:55 -05:00
parent 2ee83f8bde
commit 618573c996

View File

@ -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)