Set StartifySection via syntax file

This keeps it highlighted after 'set ft=startify' etc.

References #117.
This commit is contained in:
Daniel Hahler 2014-11-15 09:32:20 +01:00 committed by Marco Hinz
parent e964a581d0
commit 07e10a15a0
2 changed files with 12 additions and 11 deletions

View file

@ -32,8 +32,13 @@ if exists('g:startify_custom_header')
endif
if exists('g:startify_custom_footer')
autocmd startify User Startified
\ execute 'syntax region StartifyFooter start=/\%'. (startify#get_lastline() + 1) .'l/ end=/*/'
execute 'syntax region StartifyFooter start=/\%'. startify#get_lastline() .'l/ end=/*/'
endif
if exists('w:startify_section_header_lines')
for line in w:startify_section_header_lines
execute 'syntax region StartifySection start=/\%'. line .'l/ end=/$/'
endfor
endif
highlight default link StartifyBracket Delimiter