1" Vim syntax file 2" Language: directory pager 3" Maintainer: Thilo Six <[email protected]> 4" Derived From: Nikolai Weibulls dircolors.vim 5" Last Change: 2011 Dec 11 6" Modeline: vim: ts=8:sw=2:sts=2: 7" 8" usage: $ ls -la | view -c "set ft=dirpager" - 9" 10" 11",----[ ls(1posix) ]-------------------------------------------------- 12" 13" The <entry type> character shall describe the type of file, as 14" follows: 15" 16" d Directory. 17" b Block special file. 18" c Character special file. 19" l (ell) Symbolic link. 20" p FIFO. 21" - Regular file. 22"`-------------------------------------------------------------------- 23" 24 25if exists("b:current_syntax") || &compatible 26 finish 27endif 28 29setlocal nowrap 30 31syn keyword DirPagerTodo contained FIXME TODO XXX NOTE 32 33syn region DirPagerExe start='^...x\|^......x\|^.........x' end='$' contains=DirPagerTodo,@Spell 34syn region DirPagerDir start='^d' end='$' contains=DirPagerTodo,@Spell 35syn region DirPagerLink start='^l' end='$' contains=DirPagerTodo,@Spell 36syn region DirPagerSpecial start='^b' end='$' contains=DirPagerTodo,@Spell 37syn region DirPagerSpecial start='^c' end='$' contains=DirPagerTodo,@Spell 38syn region DirPagerFifo start='^p' end='$' contains=DirPagerTodo,@Spell 39 40hi def link DirPagerTodo Todo 41hi def DirPagerExe ctermfg=Green guifg=Green 42hi def DirPagerDir ctermfg=Blue guifg=Blue 43hi def DirPagerLink ctermfg=Cyan guifg=Cyan 44hi def DirPagerSpecial ctermfg=Yellow guifg=Yellow 45hi def DirPagerFifo ctermfg=Brown guifg=Brown 46 47let b:current_syntax = "dirpager" 48 49