Proper use of User autocmd

This commit is contained in:
Marco Hinz 2014-03-31 18:09:40 +02:00
parent 5370a743f2
commit 19870ae159
2 changed files with 3 additions and 3 deletions

View file

@ -143,7 +143,7 @@ function! startify#insane_in_the_membrane() abort
call cursor((s:show_special ? 2 : 0) + s:headoff + s:secoff, 5) call cursor((s:show_special ? 2 : 0) + s:headoff + s:secoff, 5)
silent! doautocmd <nomodeline> startify User silent! doautocmd <nomodeline> startify User Startified
endfunction endfunction
" Function: #session_load {{{1 " Function: #session_load {{{1

View file

@ -26,9 +26,9 @@ if exists('g:startify_custom_header')
endif endif
if exists('g:startify_custom_footer') if exists('g:startify_custom_footer')
autocmd startify User <buffer> autocmd startify User Startified
\ execute 'syntax region StartifyFooter start=/\%'. (startify#get_lastline() + 1) .'l/ end=/*/' | \ execute 'syntax region StartifyFooter start=/\%'. (startify#get_lastline() + 1) .'l/ end=/*/' |
\ autocmd! startify User <buffer> \ autocmd! startify User
endif endif
highlight default link StartifyHeader Normal highlight default link StartifyHeader Normal