| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- " vim: et sw=2 sts=2
- " Plugin: https://github.com/mhinz/vim-startify
- " Description: A fancy start screen for Vim.
- " Maintainer: Marco Hinz <http://github.com/mhinz>
- if exists("b:current_syntax")
- finish
- endif
- let s:sep = startify#get_separator()
- syntax sync fromstart
- syntax match StartifyBracket /.*\%9c/ contains=
- \ StartifyNumber,
- \ StartifySelect,
- syntax match StartifySpecial /\V<empty buffer>\|<quit>/
- syntax match StartifyNumber /^\s*\[\zs[^BSVT]\{-}\ze\]/
- syntax match StartifySelect /^\s*\[\zs[BSVT]\{-}\ze\]/
- syntax match StartifyFile /.*/ contains=
- \ StartifyBracket,
- \ StartifyPath,
- \ StartifySpecial,
- 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) + 2) .'l/'
- endif
- if exists('g:startify_custom_footer')
- execute 'syntax region StartifyFooter start=/\%'. startify#get_lastline() .'l/ end=/*/'
- endif
- if exists('b:startify_section_header_lines')
- for line in b:startify_section_header_lines
- execute 'syntax region StartifySection start=/\%'. line .'l/ end=/$/'
- endfor
- endif
- highlight default link StartifyBracket Delimiter
- highlight default link StartifyFile Identifier
- highlight default link StartifyFooter Title
- highlight default link StartifyHeader Title
- highlight default link StartifyNumber Number
- highlight default link StartifyPath Directory
- highlight default link StartifySection Statement
- highlight default link StartifySelect Title
- highlight default link StartifySlash Delimiter
- highlight default link StartifySpecial Comment
- let b:current_syntax = 'startify'
|