From 41801d60cbfd8392ecad03226b813d945c7c8257 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Fri, 1 Jul 2016 01:41:05 +0200 Subject: [PATCH] Bookmarks: wipe directory buffers on session autoload References https://github.com/mhinz/vim-startify/issues/231 --- autoload/startify.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/startify.vim b/autoload/startify.vim index 81a48dc..0df6c52 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -776,6 +776,7 @@ function! s:check_user_options(path) abort let session = a:path . s:sep .'Session.vim' if get(g:, 'startify_session_autoload') && filereadable(session) + execute 'silent bwipeout' a:path execute 'source' session elseif get(g:, 'startify_change_to_vcs_root') call s:cd_to_vcs_root(a:path)