From 19870ae159520262817c3b30b3713713f9438f7b Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 31 Mar 2014 18:09:40 +0200 Subject: [PATCH] Proper use of User autocmd --- autoload/startify.vim | 2 +- syntax/startify.vim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 19217b5..decc220 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -143,7 +143,7 @@ function! startify#insane_in_the_membrane() abort call cursor((s:show_special ? 2 : 0) + s:headoff + s:secoff, 5) - silent! doautocmd startify User + silent! doautocmd startify User Startified endfunction " Function: #session_load {{{1 diff --git a/syntax/startify.vim b/syntax/startify.vim index 8ee0a91..a66e5da 100644 --- a/syntax/startify.vim +++ b/syntax/startify.vim @@ -26,9 +26,9 @@ if exists('g:startify_custom_header') endif if exists('g:startify_custom_footer') - autocmd startify User + autocmd startify User Startified \ execute 'syntax region StartifyFooter start=/\%'. (startify#get_lastline() + 1) .'l/ end=/*/' | - \ autocmd! startify User + \ autocmd! startify User endif highlight default link StartifyHeader Normal