Merge pull request #621 from nfischer/master

Fixing 'modifiable', 'bufhidden', and other small buffer properties for Vundle buffers
This commit is contained in:
gmarik 2015-10-23 13:34:14 -04:00
commit 05be0a50f4

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