codekingpro/portable-devtools
114k
1" Vim syntax file2" Maintainer: Thilo Six3" Contact: <vim-dev at vim dot org>4" http://www.vim.org/maillist.php#vim-dev5"6" Description: display directory content inside Vim with syntax7" highlighting8" File: runtime/syntax/dirpager.vim9" Last Change: 2022 Jun 1410" Modeline: vim: ts=8:sw=2:sts=2:11"12" Credits: dirpager.vim is derived from Nikolai Weibulls dircolors.vim13"14" License: VIM License15" Vim is Charityware, see ":help Uganda"16"17" Usage: $ ls -la | view -c "set ft=dirpager" -18"19"20",----[ ls(1posix) ]--------------------------------------------------21"22" The <entry type> character shall describe the type of file, as23" follows:24"25" d Directory.26" b Block special file.27" c Character special file.28" l (ell) Symbolic link.29" p FIFO.30" - Regular file.31"32 33if exists("b:current_syntax") || &compatible34 finish35endif36 37setlocal nowrap38 39syn keyword DirPagerTodo contained FIXME TODO XXX NOTE40 41syn region DirPagerExe start='^...x\|^......x\|^.........x' end='$' contains=DirPagerTodo,@Spell42syn region DirPagerDir start='^d' end='$' contains=DirPagerTodo,@Spell43syn region DirPagerLink start='^l' end='$' contains=DirPagerTodo,@Spell44syn region DirPagerSpecial start='^b' end='$' contains=DirPagerTodo,@Spell45syn region DirPagerSpecial start='^c' end='$' contains=DirPagerTodo,@Spell46syn region DirPagerFifo start='^p' end='$' contains=DirPagerTodo,@Spell47 48hi def link DirPagerTodo Todo49hi def DirPagerExe ctermfg=Green guifg=Green50hi def DirPagerDir ctermfg=Blue guifg=Blue51hi def DirPagerLink ctermfg=Cyan guifg=Cyan52hi def DirPagerSpecial ctermfg=Yellow guifg=Yellow53hi def DirPagerFifo ctermfg=Brown guifg=Brown54 55let b:current_syntax = "dirpager"56 57 