display counts
This commit is contained in:
parent
2ee83f8bde
commit
618573c996
@ -1,13 +1,15 @@
|
|||||||
func! vundle#scripts#all(bang, ...)
|
func! vundle#scripts#all(bang, ...)
|
||||||
let info = ['"Keymap: i - Install bundle; c - Cleanup; r - Refine list']
|
let info = ['"Keymap: i - Install bundle; c - Cleanup; r - Refine list']
|
||||||
if a:1== '' " whether refine search string given
|
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
|
else
|
||||||
let matches = filter(s:load_scripts(a:bang), 'v:val =~? "'.escape(a:1,'"').'"')
|
let matches = filter(s:load_scripts(a:bang), 'v:val =~? "'.escape(a:1,'"').'"')
|
||||||
let @/=a:1
|
let @/=a:1
|
||||||
call s:display(info + ['"Search results for: '.a:1], matches)
|
call s:display(info + ['"Search results for: '.a:1], matches)
|
||||||
redraw
|
redraw
|
||||||
endif
|
endif
|
||||||
|
echo len(matches).' bundles found'
|
||||||
endf
|
endf
|
||||||
|
|
||||||
func! vundle#scripts#complete(a,c,d)
|
func! vundle#scripts#complete(a,c,d)
|
||||||
|
Loading…
Reference in New Issue
Block a user