parent
832c0a65b1
commit
aea086205c
|
@ -569,11 +569,8 @@ function! s:check_user_options() abort
|
||||||
let path = expand('%')
|
let path = expand('%')
|
||||||
let session = path . s:sep .'Session.vim'
|
let session = path . s:sep .'Session.vim'
|
||||||
|
|
||||||
" autoload session
|
|
||||||
if get(g:, 'startify_session_autoload') && filereadable(session)
|
|
||||||
execute 'source' session
|
|
||||||
" change to VCS root directory
|
" change to VCS root directory
|
||||||
elseif get(g:, 'startify_change_to_vcs_root')
|
if get(g:, 'startify_change_to_vcs_root')
|
||||||
call s:cd_to_vcs_root(path)
|
call s:cd_to_vcs_root(path)
|
||||||
" change directory
|
" change directory
|
||||||
elseif get(g:, 'startify_change_to_dir', 1)
|
elseif get(g:, 'startify_change_to_dir', 1)
|
||||||
|
|
|
@ -194,9 +194,9 @@ The number of files to list.
|
||||||
>
|
>
|
||||||
let g:startify_session_autoload = 0
|
let g:startify_session_autoload = 0
|
||||||
<
|
<
|
||||||
If you bookmark a directory that contains a Session.vim and this option is
|
If you fire up "vim" in a directory that contains a "Session.vim", that session
|
||||||
enabled, that session will be loaded automatically when you open the
|
will be loaded automatically. Otherwise it will be shown as the top entry in
|
||||||
directory.
|
the Startify buffer.
|
||||||
|
|
||||||
Great way to create a portable project folder.
|
Great way to create a portable project folder.
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,13 @@ let g:loaded_startify = 1
|
||||||
|
|
||||||
augroup startify
|
augroup startify
|
||||||
if !get(g:, 'startify_disable_at_vimenter')
|
if !get(g:, 'startify_disable_at_vimenter')
|
||||||
autocmd VimEnter *
|
autocmd VimEnter * nested
|
||||||
\ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gmnq]\=vim\=x\=\%[\.exe]$')
|
\ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gmnq]\=vim\=x\=\%[\.exe]$')
|
||||||
\ | call startify#insane_in_the_membrane()
|
\ | if get(g:, 'startify_session_autoload') && filereadable('Session.vim')
|
||||||
|
\ | source Session.vim
|
||||||
|
\ | else
|
||||||
|
\ | call startify#insane_in_the_membrane()
|
||||||
|
\ | endif
|
||||||
\ | endif
|
\ | endif
|
||||||
\ | autocmd! startify VimEnter
|
\ | autocmd! startify VimEnter
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue