add keymap help and bindings
This commit is contained in:
parent
035cc6ecba
commit
851fe26a45
@ -1,10 +1,11 @@
|
|||||||
func! vundle#scripts#all(bang, ...)
|
func! vundle#scripts#all(bang, ...)
|
||||||
|
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(['" Vim scripts: '], s:load_scripts(a:bang))
|
call s:display(info + ['"Vim scripts: '], s:load_scripts(a:bang))
|
||||||
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,'"').'"')
|
||||||
call s:display(['" Search results for: '.a:1], matches)
|
|
||||||
let @/=a:1
|
let @/=a:1
|
||||||
|
call s:display(info + ['"Search results for: '.a:1], matches)
|
||||||
redraw
|
redraw
|
||||||
endif
|
endif
|
||||||
endf
|
endf
|
||||||
|
@ -4,7 +4,7 @@ set syntax=vim
|
|||||||
|
|
||||||
syn keyword vimCommand Bundle
|
syn keyword vimCommand Bundle
|
||||||
|
|
||||||
nnoremap <buffer> <silent> <CR> :call vundle#scripts#install()<CR>
|
nnoremap <buffer> i :call vundle#scripts#install()<CR>
|
||||||
nnoremap <buffer> s :BundleSearch
|
nnoremap <buffer> r :Bundles
|
||||||
nnoremap <buffer> c :BundleClean<CR>
|
nnoremap <buffer> c :BundleClean<CR>
|
||||||
nnoremap <buffer> C :BundleClean!<CR>
|
nnoremap <buffer> C :BundleClean!<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user