diff options
Diffstat (limited to '')
-rw-r--r-- | .config/nvim/settings.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/nvim/settings.vim b/.config/nvim/settings.vim index b75ed78..6e977c6 100644 --- a/.config/nvim/settings.vim +++ b/.config/nvim/settings.vim @@ -25,4 +25,4 @@ let maplocalleader="\\" " Disables automatic commenting on newline: autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o " Reopen Startify on close -autocmd BufDelete * if empty(filter(tabpagebuflist(), '!buflisted(v:val)')) | Startify | endif +autocmd BufEnter * if line2byte('.') == -1 && len(tabpagebuflist()) == 1 | Startify | endif |