From 851fe26a450484bb0cbd2fa6e55d22a83a81a117 Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 19 Mar 2011 14:09:53 -0500 Subject: [PATCH] add keymap help and bindings --- autoload/vundle/scripts.vim | 5 +++-- ftplugin/vundle.vim | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 27d656b..7a575ec 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -1,10 +1,11 @@ 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(['" Vim scripts: '], s:load_scripts(a:bang)) + call s:display(info + ['"Vim scripts: '], s:load_scripts(a:bang)) else let matches = filter(s:load_scripts(a:bang), 'v:val =~? "'.escape(a:1,'"').'"') - call s:display(['" Search results for: '.a:1], matches) let @/=a:1 + call s:display(info + ['"Search results for: '.a:1], matches) redraw endif endf diff --git a/ftplugin/vundle.vim b/ftplugin/vundle.vim index c968097..d94498d 100644 --- a/ftplugin/vundle.vim +++ b/ftplugin/vundle.vim @@ -4,7 +4,7 @@ set syntax=vim syn keyword vimCommand Bundle -nnoremap :call vundle#scripts#install() -nnoremap s :BundleSearch +nnoremap i :call vundle#scripts#install() +nnoremap r :Bundles nnoremap c :BundleClean nnoremap C :BundleClean!