Merge branch 'nin' of http://github.com/gmarik/vundle into nin

This commit is contained in:
gmarik 2011-08-24 16:18:03 -05:00
commit 5ae2d446f5
2 changed files with 8 additions and 8 deletions

View File

@ -4,7 +4,7 @@ func! vundle#installer#new(bang, ...) abort
\ map(copy(a:000), 'vundle#config#init_bundle(v:val, {})')
let names = vundle#scripts#bundle_names(map(copy(bundles), 'v:val.name_spec'))
call vundle#scripts#view('Installer',['" Installing bundles'], names + ['Helptags'])
call vundle#scripts#view('Installer',['" Installing bundles to '.expand(g:bundle_dir)], names + ['Helptags'])
call s:process(a:bang, (a:bang ? 'I':'i'))
@ -132,8 +132,8 @@ func! vundle#installer#clean(bang) abort
call vundle#scripts#view('clean', headers, names)
redraw!
if (a:bang || empty(names) || input('Continute ? [ y/n ]:') =~? 'y')
call s:process(a:bang, 'd')
if (a:bang || empty(names) || input('Continue ? [ y/n ]:') =~? 'y')
call s:process(a:bang, 'D')
endif
endf

View File

@ -24,7 +24,7 @@ endf
func! s:view_log()
if !exists('g:vundle_log_file')
let g:vundle_log_file = expand('$HOME/.vim-vundle/vundle.log')
let g:vundle_log_file = tempname()
endif
call writefile(g:vundle_log, g:vundle_log_file)
@ -38,7 +38,7 @@ func vundle#scripts#bundle_names(names)
endf
func! vundle#scripts#view(title, headers, results)
if exists('g:vundle_view')
if exists('g:vundle_view') && bufloaded(g:vundle_view)
exec g:vundle_view.'bd!'
endif
@ -69,7 +69,7 @@ func! vundle#scripts#view(title, headers, results)
com! -buffer -nargs=0 VundleLog call s:view_log()
nnoremap <buffer> q :silent bd!<CR>
nnoremap <buffer> d :exec 'Delete'.getline('.')<CR>
nnoremap <buffer> D :exec 'Delete'.getline('.')<CR>
nnoremap <buffer> i :exec 'Install'.getline('.')<CR>
nnoremap <buffer> I :exec 'Install'.substitute(getline('.'), '^Bundle ', 'Bundle! ', '')<CR>
@ -115,7 +115,7 @@ func! s:fetch_scripts(to)
endf
func! s:load_scripts(bang)
let f = expand('$HOME/.vim-vundle/vim-scripts.org.json')
let f = expand(g:bundle_dir.'/.vundle/script-names.vim-scripts.org.json')
if a:bang || !filereadable(f)
if 0 != s:fetch_scripts(f)
return []