From 544690b6c06145c4892af403ee82274f30dd8b3b Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Fri, 31 May 2013 13:09:14 +0200 Subject: [PATCH] Close Startify buffer on WinLeave Before this change the Startify buffer didn't close if only split actions ('s' and 'v') were used to open files. --- autoload/startify.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/startify.vim b/autoload/startify.vim index 78c82d5..d70de1b 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -110,6 +110,7 @@ function! startify#insane_in_the_membrane() abort autocmd! startify * autocmd startify CursorMoved call s:set_cursor() autocmd startify BufLeave autocmd! startify * + autocmd startify WinLeave bd call cursor(special ? 4 : 2, 5) endfunction