Explorar o código

New highlight group: StartifyHeader

It links to Normal by default.

References #27.
Marco Hinz %!s(int64=12) %!d(string=hai) anos
pai
achega
340f4b6835
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      syntax/startify.vim

+ 5 - 0
syntax/startify.vim

@@ -17,6 +17,11 @@ syntax match StartifyFile    /.*/ contains=StartifyBracket,StartifyNumber,Starti
 execute 'syntax match StartifySlash /\'. s:sep .'/'
 execute 'syntax match StartifyPath /\%9c.*\'. s:sep .'/ contains=StartifySlash'
 
+if exists('g:startify_custom_header')
+  execute 'syntax region StartifyHeader start=/\%1l/ end=/\%'. (len(g:startify_custom_header) + 1) .'l/'
+endif
+
+highlight link StartifyHeader  Normal
 highlight link StartifyBracket Delimiter
 highlight link StartifyNumber  Number