diff --git a/plugin/startify.vim b/plugin/startify.vim index 96bbc5a..4c6109e 100644 --- a/plugin/startify.vim +++ b/plugin/startify.vim @@ -34,7 +34,7 @@ function! s:update_oldfiles(file) endfunction function! s:on_vimenter() - if !argc() && line2byte('$') == -1 + if !argc() && line('$') == 1 && getline('.') == '' if get(g:, 'startify_session_autoload') && filereadable('Session.vim') source Session.vim elseif !get(g:, 'startify_disable_at_vimenter')