summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-20 20:55:17 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-20 20:55:17 +0200
commit0e1666c53077b8d7ead4b500e335af1950c8c2e4 (patch)
tree93dbb28f6e39a26af19370a2c0e4b8c4d7a38157
parentinit.vim rework (diff)
downloaddotfiles-bsd-0e1666c53077b8d7ead4b500e335af1950c8c2e4.tar.gz
dotfiles-bsd-0e1666c53077b8d7ead4b500e335af1950c8c2e4.tar.bz2
dotfiles-bsd-0e1666c53077b8d7ead4b500e335af1950c8c2e4.tar.xz
dotfiles-bsd-0e1666c53077b8d7ead4b500e335af1950c8c2e4.tar.zst
dotfiles-bsd-0e1666c53077b8d7ead4b500e335af1950c8c2e4.zip
Startify update
-rw-r--r--.config/nvim/settings.vim2
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