| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- " vim: et sw=2 sts=2
- " Plugin: https://github.com/mhinz/vim-startify
- " Description: Start screen displaying recently used stuff.
- " Maintainer: Marco Hinz <http://github.com/mhinz>
- " Version: 1.8
- 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')
- autocmd startify User Startified
- \ execute 'syntax region StartifyFooter start=/\%'. (startify#get_lastline() + 1) .'l/ end=/*/'
- endif
- highlight default link StartifyBracket Delimiter
- highlight default link StartifyFooter Normal
- highlight default link StartifyHeader Normal
- highlight default link StartifyNumber Number
- highlight default link StartifySection Special
- highlight default link StartifySelect Title
- let b:current_syntax = 'startify'
|