Skip to content

Commit 05be0a5

Browse files
committed
Merge pull request #621 from nfischer/master
Fixing 'modifiable', 'bufhidden', and other small buffer properties for Vundle buffers
2 parents 0ee36b2 + fb9dff1 commit 05be0a5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

autoload/vundle/scripts.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ func! s:view_log()
6363
endif
6464
call writefile(g:vundle#log, s:log_file)
6565
execute 'silent pedit ' . s:log_file
66+
set bufhidden=wipe
67+
setl buftype=nofile
68+
setl noswapfile
69+
setl ro noma
6670

6771
wincmd P | wincmd H
6872
endf
@@ -116,6 +120,10 @@ func! s:view_changelog()
116120
endif
117121
call writefile(s:create_changelog(), s:changelog_file)
118122
execute 'silent pedit' s:changelog_file
123+
set bufhidden=wipe
124+
setl buftype=nofile
125+
setl noswapfile
126+
setl ro noma
119127

120128
wincmd P | wincmd H
121129
endf
@@ -160,6 +168,7 @@ func! vundle#scripts#view(title, headers, results)
160168

161169
setl buftype=nofile
162170
setl noswapfile
171+
set bufhidden=wipe
163172

164173
setl cursorline
165174
setl nonu ro noma

0 commit comments

Comments
 (0)