diff --git a/plugin/gitsessions.vim b/plugin/gitsessions.vim index 12967f6..310e5d5 100644 --- a/plugin/gitsessions.vim +++ b/plugin/gitsessions.vim @@ -203,7 +203,11 @@ endfunction augroup gitsessions autocmd! if ! exists("g:gitsessions_disable_auto_load") - autocmd VimEnter * :call g:GitSessionLoad() + if exists("g:gitsessions_use_nested_load") + autocmd VimEnter * nested :call g:GitSessionLoad() + else + autocmd VimEnter * :call g:GitSessionLoad() + endif endif autocmd BufEnter * :call g:GitSessionUpdate(0) autocmd VimLeave * :call g:GitSessionUpdate()