diff --git a/autoload/vundle.vim b/autoload/vundle.vim index bcb0ab6..216ee1b 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -37,5 +37,6 @@ endif func! vundle#rc(...) abort let g:bundle_dir = len(a:000) > 0 ? expand(a:1) : expand('$HOME/.vim/bundle') + let g:vundle_log = [] call vundle#config#init() endf diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 82dc4eb..50b7925 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -193,7 +193,6 @@ func! s:system(cmd) abort endf func! s:log(str) abort - if !exists('g:vundle_log') | let g:vundle_log = [] | endif call add(g:vundle_log, a:str) return a:str endf diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index d0e4ac3..6005758 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -23,9 +23,12 @@ func! vundle#scripts#complete(a,c,d) endf func! s:view_log() - if !exists('b:log_file') | let b:log_file = tempname() | endif - call writefile(g:vundle_log, b:log_file) - silent pedit `=b:log_file` + if !exists('g:vundle_log_file') + let g:vundle_log_file = expand('$HOME/.vim-vundle/vundle.log') + endif + + call writefile(g:vundle_log, g:vundle_log_file) + silent pedit `=g:vundle_log_file` wincmd P | wincmd H endf