neovim/runtime/syntax/dirpager.vim
Justin M. Keyes a98a6996c2 re-integrate runtime/ vim-patch:0 #938
Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7

Excluding:
  Amiga icons (*.info, icons/)
  doc/hangulin.txt
  tutor/
  spell/
  lang/ (only used for menu translations)
  macros/maze/, macros/hanoi/, macros/life/, macros/urm/
      These were used to test vi compatibility.
  termcap
      "Demonstration of a termcap file (for the Amiga and Archimedes)"

Helped-by: Rich Wareham <rjw57@cam.ac.uk>
Helped-by: John <john.schmidt.h@gmail.com>
Helped-by: Yann <yann@yann-salaun.com>
Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com>
Helped-by: drasill <github@tof2k.com>
Helped-by: Tae Sandoval Murgan <taecilla@gmail.com>
Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>
2014-07-29 02:12:31 +00:00

57 lines
1.7 KiB
VimL

" Vim syntax file
" Maintainer: Thilo Six
" Contact: <vim-dev at vim dot org>
" http://www.vim.org/maillist.php#vim-dev
"
" Description: display directory content inside Vim with syntax
" highlighting
" File: runtime/syntax/dirpager.vim
" Last Change: 2012 May 19
" Modeline: vim: ts=8:sw=2:sts=2:
"
" Credits: dirpager.vim is derived from Nikolai Weibulls dircolors.vim
"
" License: VIM License
" Vim is Charityware, see ":help Uganda"
"
" Usage: $ ls -la | view -c "set ft=dirpager" -
"
"
",----[ ls(1posix) ]--------------------------------------------------
"
" The <entry type> character shall describe the type of file, as
" follows:
"
" d Directory.
" b Block special file.
" c Character special file.
" l (ell) Symbolic link.
" p FIFO.
" - Regular file.
"
if exists("b:current_syntax") || &compatible
finish
endif
setlocal nowrap
syn keyword DirPagerTodo contained FIXME TODO XXX NOTE
syn region DirPagerExe start='^...x\|^......x\|^.........x' end='$' contains=DirPagerTodo,@Spell
syn region DirPagerDir start='^d' end='$' contains=DirPagerTodo,@Spell
syn region DirPagerLink start='^l' end='$' contains=DirPagerTodo,@Spell
syn region DirPagerSpecial start='^b' end='$' contains=DirPagerTodo,@Spell
syn region DirPagerSpecial start='^c' end='$' contains=DirPagerTodo,@Spell
syn region DirPagerFifo start='^p' end='$' contains=DirPagerTodo,@Spell
hi def link DirPagerTodo Todo
hi def DirPagerExe ctermfg=Green guifg=Green
hi def DirPagerDir ctermfg=Blue guifg=Blue
hi def DirPagerLink ctermfg=Cyan guifg=Cyan
hi def DirPagerSpecial ctermfg=Yellow guifg=Yellow
hi def DirPagerFifo ctermfg=Brown guifg=Brown
let b:current_syntax = "dirpager"