blob: 371dda36747012586e0879f472e49feb9bbbebfe [file] [log] [blame]
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +02001" Vim syntax file
Bram Moolenaarf1568ec2011-12-14 21:17:39 +01002" Language: directory pager
3" Maintainer: Thilo Six <T.Six@gmx.de>
4" Derived From: Nikolai Weibulls dircolors.vim
5" Last Change: 2011 Dec 11
6" Modeline: vim: ts=8:sw=2:sts=2:
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +02007"
8" usage: $ ls -la | view -c "set ft=dirpager" -
9"
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010010"
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"
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020024
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010025if exists("b:current_syntax") || &compatible
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020026 finish
27endif
28
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020029setlocal 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
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010036syn 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
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020039
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
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010044hi def DirPagerSpecial ctermfg=Yellow guifg=Yellow
45hi def DirPagerFifo ctermfg=Brown guifg=Brown
Bram Moolenaar8e5af3e2011-04-28 19:02:44 +020046
47let b:current_syntax = "dirpager"
48