diff --git a/autoload/startify.vim b/autoload/startify.vim index ff60c05..7171eba 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -570,7 +570,9 @@ function! s:check_user_options() abort let session = path . s:sep .'Session.vim' " change to VCS root directory - if get(g:, 'startify_change_to_vcs_root') + if get(g:, 'startify_session_autoload') && filereadable(session) + execute 'source' session + elseif get(g:, 'startify_change_to_vcs_root') call s:cd_to_vcs_root(path) " change directory elseif get(g:, 'startify_change_to_dir', 1) diff --git a/doc/startify.txt b/doc/startify.txt index d2705f3..49ba574 100644 --- a/doc/startify.txt +++ b/doc/startify.txt @@ -198,6 +198,8 @@ If you fire up "vim" in a directory that contains a "Session.vim", that session will be loaded automatically. Otherwise it will be shown as the top entry in the Startify buffer. +This also works if you open a bookmarked directory. + Great way to create a portable project folder. ------------------------------------------------------------------------------