2013-09-24 17:41:31 +02:00
|
|
|
" vim: et sw=2 sts=2
|
|
|
|
|
2013-04-23 16:41:02 +02:00
|
|
|
" Plugin: https://github.com/mhinz/vim-startify
|
2015-04-28 15:34:11 +02:00
|
|
|
" Description: A fancy start screen for Vim.
|
2013-04-23 16:41:02 +02:00
|
|
|
" Maintainer: Marco Hinz <http://github.com/mhinz>
|
|
|
|
|
|
|
|
if exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2013-04-30 13:34:25 +02:00
|
|
|
let s:sep = startify#get_separator()
|
2013-04-23 16:41:02 +02:00
|
|
|
|
2013-09-19 10:18:34 +02:00
|
|
|
syntax sync fromstart
|
|
|
|
|
2014-09-02 16:28:10 +02:00
|
|
|
syntax match StartifyBracket /.*\%9c/ contains=
|
|
|
|
\ StartifyNumber,
|
|
|
|
\ StartifySelect,
|
2013-05-02 15:00:00 +02:00
|
|
|
syntax match StartifySpecial /\V<empty buffer>\|<quit>/
|
2014-09-02 17:56:15 +02:00
|
|
|
syntax match StartifyNumber /^\s*\[\zs[^BSVT]\{-}\ze\]/
|
|
|
|
syntax match StartifySelect /^\s*\[\zs[BSVT]\{-}\ze\]/
|
2016-02-12 14:49:01 +01:00
|
|
|
syntax match StartifyVar /\$[^\/]\+/
|
2014-09-02 16:28:10 +02:00
|
|
|
syntax match StartifyFile /.*/ contains=
|
|
|
|
\ StartifyBracket,
|
|
|
|
\ StartifyPath,
|
|
|
|
\ StartifySpecial,
|
2013-04-29 12:36:48 +02:00
|
|
|
|
|
|
|
execute 'syntax match StartifySlash /\'. s:sep .'/'
|
2016-02-12 14:49:01 +01:00
|
|
|
execute 'syntax match StartifyPath /\%9c.*\'. s:sep .'/ contains=StartifySlash,StartifyVar'
|
2013-04-29 12:36:48 +02:00
|
|
|
|
2016-03-14 15:29:20 +01:00
|
|
|
execute 'syntax region StartifyHeader start=/\%1l/ end=/\%'. (len(g:startify_header) + 2) .'l/'
|
2013-07-11 13:37:04 +02:00
|
|
|
|
2013-09-04 09:25:33 +02:00
|
|
|
if exists('g:startify_custom_footer')
|
2014-11-15 09:32:20 +01:00
|
|
|
execute 'syntax region StartifyFooter start=/\%'. startify#get_lastline() .'l/ end=/*/'
|
|
|
|
endif
|
|
|
|
|
2016-10-15 14:43:29 +02:00
|
|
|
if exists('b:startify.section_header_lines')
|
2016-10-14 20:14:16 +02:00
|
|
|
for line in b:startify.section_header_lines
|
2014-11-15 09:32:20 +01:00
|
|
|
execute 'syntax region StartifySection start=/\%'. line .'l/ end=/$/'
|
|
|
|
endfor
|
2013-09-04 09:25:33 +02:00
|
|
|
endif
|
|
|
|
|
2013-07-25 13:53:34 +02:00
|
|
|
highlight default link StartifyBracket Delimiter
|
2014-09-22 15:40:07 +02:00
|
|
|
highlight default link StartifyFile Identifier
|
|
|
|
highlight default link StartifyFooter Title
|
|
|
|
highlight default link StartifyHeader Title
|
2013-07-25 13:53:34 +02:00
|
|
|
highlight default link StartifyNumber Number
|
2014-09-22 15:40:07 +02:00
|
|
|
highlight default link StartifyPath Directory
|
|
|
|
highlight default link StartifySection Statement
|
2014-09-02 16:28:10 +02:00
|
|
|
highlight default link StartifySelect Title
|
2014-09-22 15:40:07 +02:00
|
|
|
highlight default link StartifySlash Delimiter
|
2014-10-30 17:09:29 +01:00
|
|
|
highlight default link StartifySpecial Comment
|
2016-02-12 14:49:01 +01:00
|
|
|
highlight default link StartifyVar StartifyPath
|
2013-04-23 16:41:02 +02:00
|
|
|
|
|
|
|
let b:current_syntax = 'startify'
|