Show random quotes if g:startify_custom_header isn't set

This commit is contained in:
Marco Hinz 2016-03-14 15:29:20 +01:00
parent 8434c33f7a
commit fa733c3e20
3 changed files with 23 additions and 31 deletions

View file

@ -27,9 +27,7 @@ syntax match StartifyFile /.*/ contains=
execute 'syntax match StartifySlash /\'. s:sep .'/'
execute 'syntax match StartifyPath /\%9c.*\'. s:sep .'/ contains=StartifySlash,StartifyVar'
if exists('g:startify_custom_header')
execute 'syntax region StartifyHeader start=/\%1l/ end=/\%'. (len(g:startify_custom_header) + 2) .'l/'
endif
execute 'syntax region StartifyHeader start=/\%1l/ end=/\%'. (len(g:startify_header) + 2) .'l/'
if exists('g:startify_custom_footer')
execute 'syntax region StartifyFooter start=/\%'. startify#get_lastline() .'l/ end=/*/'