Vundle log, changelog, and scripts-view are no longer modifiable and the

buffers will not persist after they're closed.
This commit is contained in:
Nate Fischer 2015-07-10 11:46:08 -07:00
parent 0ee36b26e1
commit fb9dff181e

View File

@ -63,6 +63,10 @@ func! s:view_log()
endif endif
call writefile(g:vundle#log, s:log_file) call writefile(g:vundle#log, s:log_file)
execute 'silent pedit ' . s:log_file execute 'silent pedit ' . s:log_file
set bufhidden=wipe
setl buftype=nofile
setl noswapfile
setl ro noma
wincmd P | wincmd H wincmd P | wincmd H
endf endf
@ -116,6 +120,10 @@ func! s:view_changelog()
endif endif
call writefile(s:create_changelog(), s:changelog_file) call writefile(s:create_changelog(), s:changelog_file)
execute 'silent pedit' s:changelog_file execute 'silent pedit' s:changelog_file
set bufhidden=wipe
setl buftype=nofile
setl noswapfile
setl ro noma
wincmd P | wincmd H wincmd P | wincmd H
endf endf
@ -160,6 +168,7 @@ func! vundle#scripts#view(title, headers, results)
setl buftype=nofile setl buftype=nofile
setl noswapfile setl noswapfile
set bufhidden=wipe
setl cursorline setl cursorline
setl nonu ro noma setl nonu ro noma