xref: /vim-8.2.3635/runtime/syntax/dirpager.vim (revision c873442b)
18e5af3e5SBram Moolenaar" Vim syntax file
2*c873442bSBram Moolenaar" Maintainer:	  Thilo Six
3*c873442bSBram Moolenaar" Contact:	  <vim-dev at vim dot org>
4*c873442bSBram Moolenaar"		  http://www.vim.org/maillist.php#vim-dev
5*c873442bSBram Moolenaar"
6*c873442bSBram Moolenaar" Description:	  display directory content inside Vim with syntax
7*c873442bSBram Moolenaar"		  highlighting
8*c873442bSBram Moolenaar" File:		  runtime/syntax/dirpager.vim
9*c873442bSBram Moolenaar" Last Change:	  2012 May 19
10f1568ecaSBram Moolenaar" Modeline:	  vim: ts=8:sw=2:sts=2:
118e5af3e5SBram Moolenaar"
12*c873442bSBram Moolenaar" Credits:	  dirpager.vim is derived from Nikolai Weibulls dircolors.vim
13*c873442bSBram Moolenaar"
14*c873442bSBram Moolenaar" License:	  VIM License
15*c873442bSBram Moolenaar"		  Vim is Charityware, see ":help Uganda"
16*c873442bSBram Moolenaar"
17*c873442bSBram Moolenaar" Usage:	  $ ls -la | view -c "set ft=dirpager" -
188e5af3e5SBram Moolenaar"
19f1568ecaSBram Moolenaar"
20f1568ecaSBram Moolenaar",----[ ls(1posix) ]--------------------------------------------------
21f1568ecaSBram Moolenaar"
22f1568ecaSBram Moolenaar" The  <entry type> character shall describe the type of file, as
23f1568ecaSBram Moolenaar"       follows:
24f1568ecaSBram Moolenaar"
25f1568ecaSBram Moolenaar"       d	Directory.
26f1568ecaSBram Moolenaar"       b	Block special file.
27f1568ecaSBram Moolenaar"       c	Character special file.
28f1568ecaSBram Moolenaar"       l (ell)	Symbolic link.
29f1568ecaSBram Moolenaar"       p	FIFO.
30f1568ecaSBram Moolenaar"       -	Regular file.
31f1568ecaSBram Moolenaar"
328e5af3e5SBram Moolenaar
33f1568ecaSBram Moolenaarif exists("b:current_syntax") || &compatible
348e5af3e5SBram Moolenaar  finish
358e5af3e5SBram Moolenaarendif
368e5af3e5SBram Moolenaar
378e5af3e5SBram Moolenaarsetlocal nowrap
388e5af3e5SBram Moolenaar
398e5af3e5SBram Moolenaarsyn keyword  DirPagerTodo	contained FIXME TODO XXX NOTE
408e5af3e5SBram Moolenaar
418e5af3e5SBram Moolenaarsyn region   DirPagerExe	start='^...x\|^......x\|^.........x' end='$'	contains=DirPagerTodo,@Spell
428e5af3e5SBram Moolenaarsyn region   DirPagerDir	start='^d' end='$'	contains=DirPagerTodo,@Spell
438e5af3e5SBram Moolenaarsyn region   DirPagerLink	start='^l' end='$'	contains=DirPagerTodo,@Spell
44f1568ecaSBram Moolenaarsyn region   DirPagerSpecial	start='^b' end='$'	contains=DirPagerTodo,@Spell
45f1568ecaSBram Moolenaarsyn region   DirPagerSpecial	start='^c' end='$'	contains=DirPagerTodo,@Spell
46f1568ecaSBram Moolenaarsyn region   DirPagerFifo	start='^p' end='$'	contains=DirPagerTodo,@Spell
478e5af3e5SBram Moolenaar
488e5af3e5SBram Moolenaarhi def link  DirPagerTodo	Todo
498e5af3e5SBram Moolenaarhi def	     DirPagerExe	ctermfg=Green	    guifg=Green
508e5af3e5SBram Moolenaarhi def	     DirPagerDir	ctermfg=Blue	    guifg=Blue
518e5af3e5SBram Moolenaarhi def	     DirPagerLink	ctermfg=Cyan	    guifg=Cyan
52f1568ecaSBram Moolenaarhi def	     DirPagerSpecial	ctermfg=Yellow	    guifg=Yellow
53f1568ecaSBram Moolenaarhi def	     DirPagerFifo	ctermfg=Brown	    guifg=Brown
548e5af3e5SBram Moolenaar
558e5af3e5SBram Moolenaarlet b:current_syntax = "dirpager"
568e5af3e5SBram Moolenaar
57