mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
481ebc0bb1
This removes the ability to start nvim via the following aliases in favor of just using their command line arguments: ex vim -e exim vim -E view vim -R gvim vim -g gex vim -eg gview vim -Rg rvim vim -Z rview vim -RZ rgvim vim -gZ rgview vim -RgZ This also removes Vi mode (-v) for consistency. From ':help -v': -v Start Ex in Vi mode. Only makes a difference when the executable is called "ex" or "gvim". For gvim the GUI is not started if possible.
57 lines
1.7 KiB
VimL
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 | nvim -R -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"
|
|
|