Bram Moolenaar | 8e5af3e | 2011-04-28 19:02:44 +0200 | [diff] [blame] | 1 | " Vim syntax file |
| 2 | " Language: directory pager |
| 3 | " Maintainer: Thilo Six <T.Six@gmx.de> |
| 4 | " Derived From: Nikolai Weibull's dircolors.vim |
| 5 | " Latest Revision: 2011-04-09 |
| 6 | " |
| 7 | " usage: $ ls -la | view -c "set ft=dirpager" - |
| 8 | " |
| 9 | |
| 10 | if exists("b:current_syntax") |
| 11 | finish |
| 12 | endif |
| 13 | |
| 14 | let s:cpo_save = &cpo |
| 15 | set cpo&vim |
| 16 | setlocal nowrap |
| 17 | |
| 18 | syn keyword DirPagerTodo contained FIXME TODO XXX NOTE |
| 19 | |
| 20 | syn region DirPagerExe start='^...x\|^......x\|^.........x' end='$' contains=DirPagerTodo,@Spell |
| 21 | syn region DirPagerDir start='^d' end='$' contains=DirPagerTodo,@Spell |
| 22 | syn region DirPagerLink start='^l' end='$' contains=DirPagerTodo,@Spell |
| 23 | |
| 24 | hi def link DirPagerTodo Todo |
| 25 | hi def DirPagerExe ctermfg=Green guifg=Green |
| 26 | hi def DirPagerDir ctermfg=Blue guifg=Blue |
| 27 | hi def DirPagerLink ctermfg=Cyan guifg=Cyan |
| 28 | |
| 29 | let b:current_syntax = "dirpager" |
| 30 | |
| 31 | let &cpo = s:cpo_save |
| 32 | unlet s:cpo_save |
| 33 | |