From 05501d3614a572c67580f37ff19246cfab5bec66 Mon Sep 17 00:00:00 2001 From: gmarik Date: Thu, 4 Aug 2011 16:37:25 -0500 Subject: [PATCH] Distiguish ! command --- autoload/vundle/installer.vim | 4 ++-- autoload/vundle/scripts.vim | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index dbbd2e7..c686987 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -12,7 +12,7 @@ func! vundle#installer#new(bang, ...) abort for l in range(1,len(names)) exec ":+1" redraw! - exec ':norm i' + exec ':norm '.(a:bang ? 'I' : 'i') sleep 1m endfor @@ -27,7 +27,7 @@ func! s:display(headers, results) exec g:vundle_view.'bd!' 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 wincmd P | wincmd H diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index a1c725f..6f6f896 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -37,6 +37,7 @@ func! vundle#scripts#setup_view() abort nnoremap q :bd! nnoremap i :exec 'Install'.getline('.') + nnoremap I :exec 'Install'.substitute(getline('.'), '^Bundle ', 'Bundle! ', '') nnoremap l :VundleLog