Distiguish ! command

This commit is contained in:
gmarik 2011-08-04 16:37:25 -05:00
parent a3f1c1e537
commit 05501d3614
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,7 @@ func! vundle#installer#new(bang, ...) abort
for l in range(1,len(names)) for l in range(1,len(names))
exec ":+1" exec ":+1"
redraw! redraw!
exec ':norm i' exec ':norm '.(a:bang ? 'I' : 'i')
sleep 1m sleep 1m
endfor endfor
@ -27,7 +27,7 @@ func! s:display(headers, results)
exec g:vundle_view.'bd!' exec g:vundle_view.'bd!'
endif endif
let results = map(a:results, ' printf("Bundle! ' ."'%s'".'", v:val) ') let results = map(a:results, ' printf("Bundle ' ."'%s'".'", v:val) ')
silent pedit [Vundle] installer silent pedit [Vundle] installer
wincmd P | wincmd H wincmd P | wincmd H

View File

@ -37,6 +37,7 @@ func! vundle#scripts#setup_view() abort
nnoremap <buffer> q :bd!<CR> nnoremap <buffer> q :bd!<CR>
nnoremap <buffer> i :exec 'Install'.getline('.')<CR> nnoremap <buffer> i :exec 'Install'.getline('.')<CR>
nnoremap <buffer> I :exec 'Install'.substitute(getline('.'), '^Bundle ', 'Bundle! ', '')<CR>
nnoremap <buffer> l :VundleLog<CR> nnoremap <buffer> l :VundleLog<CR>