set bufhidden=wipe to all unnamed buffers, not just the first
This commit is contained in:
parent
5e759dce1a
commit
124baaeb85
5
vimrc
5
vimrc
@ -34,9 +34,6 @@ set background=dark
|
||||
set showtabline=1
|
||||
set cinoptions=:0,(0
|
||||
set hidden
|
||||
if bufname('%') == ''
|
||||
set bufhidden=wipe
|
||||
endif
|
||||
|
||||
runtime ftplugin/man.vim
|
||||
nnoremap K :Man <cword><CR>
|
||||
@ -123,6 +120,8 @@ if has("autocmd")
|
||||
autocmd BufNewFile,BufRead *.[ch].erb setlocal sw=4 ts=4 sts=4
|
||||
autocmd BufRead,BufNewFile *.oil,*.OIL set filetype=oil
|
||||
|
||||
autocmd BufEnter * if bufname('%') == '' | set bufhidden=wipe | endif
|
||||
|
||||
if has("gui_running")
|
||||
autocmd WinLeave * set nocursorline nocursorcolumn
|
||||
autocmd WinEnter * set cursorline cursorcolumn
|
||||
|
Loading…
x
Reference in New Issue
Block a user