Rename functions

This commit is contained in:
Marco Hinz 2018-04-09 17:08:20 +02:00
parent 6f621bd99a
commit 66c90a179e
No known key found for this signature in database
GPG key ID: 1C980A1B657B4A4F

View file

@ -15,8 +15,8 @@ if !get(g:, 'startify_disable_at_vimenter')
endif endif
augroup startify augroup startify
autocmd VimEnter * nested call s:genesis() autocmd VimEnter * nested call s:on_vimenter()
autocmd VimLeavePre * nested call s:extinction() autocmd VimLeavePre * nested call s:on_vimleavepre()
autocmd QuickFixCmdPre *vimgrep* let g:startify_locked = 1 autocmd QuickFixCmdPre *vimgrep* let g:startify_locked = 1
autocmd QuickFixCmdPost *vimgrep* let g:startify_locked = 0 autocmd QuickFixCmdPost *vimgrep* let g:startify_locked = 0
augroup END augroup END
@ -32,7 +32,7 @@ function! s:update_oldfiles(file)
call insert(v:oldfiles, a:file, 0) call insert(v:oldfiles, a:file, 0)
endfunction endfunction
function! s:genesis() function! s:on_vimenter()
if !argc() if !argc()
if get(g:, 'startify_session_autoload') && filereadable('Session.vim') if get(g:, 'startify_session_autoload') && filereadable('Session.vim')
source Session.vim source Session.vim
@ -48,7 +48,7 @@ function! s:genesis()
autocmd! startify VimEnter autocmd! startify VimEnter
endfunction endfunction
function! s:extinction() function! s:on_vimleavepre()
if get(g:, 'startify_session_persistence') if get(g:, 'startify_session_persistence')
\ && exists('v:this_session') \ && exists('v:this_session')
\ && filewritable(v:this_session) \ && filewritable(v:this_session)