Browse Source

display counts

pull/10/head
gmarik 15 years ago
parent
commit
618573c996
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      autoload/vundle/scripts.vim

+ 3
- 1
autoload/vundle/scripts.vim 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)


Loading…
Cancel
Save