2788
|
1 " Vim syntax file
|
3224
|
2 " 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:
|
2788
|
7 "
|
|
8 " usage: $ ls -la | view -c "set ft=dirpager" -
|
|
9 "
|
3224
|
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 "
|
2788
|
24
|
3224
|
25 if exists("b:current_syntax") || &compatible
|
2788
|
26 finish
|
|
27 endif
|
|
28
|
|
29 setlocal nowrap
|
|
30
|
|
31 syn keyword DirPagerTodo contained FIXME TODO XXX NOTE
|
|
32
|
|
33 syn region DirPagerExe start='^...x\|^......x\|^.........x' end='$' contains=DirPagerTodo,@Spell
|
|
34 syn region DirPagerDir start='^d' end='$' contains=DirPagerTodo,@Spell
|
|
35 syn region DirPagerLink start='^l' end='$' contains=DirPagerTodo,@Spell
|
3224
|
36 syn region DirPagerSpecial start='^b' end='$' contains=DirPagerTodo,@Spell
|
|
37 syn region DirPagerSpecial start='^c' end='$' contains=DirPagerTodo,@Spell
|
|
38 syn region DirPagerFifo start='^p' end='$' contains=DirPagerTodo,@Spell
|
2788
|
39
|
|
40 hi def link DirPagerTodo Todo
|
|
41 hi def DirPagerExe ctermfg=Green guifg=Green
|
|
42 hi def DirPagerDir ctermfg=Blue guifg=Blue
|
|
43 hi def DirPagerLink ctermfg=Cyan guifg=Cyan
|
3224
|
44 hi def DirPagerSpecial ctermfg=Yellow guifg=Yellow
|
|
45 hi def DirPagerFifo ctermfg=Brown guifg=Brown
|
2788
|
46
|
|
47 let b:current_syntax = "dirpager"
|
|
48
|