tv vim: colorize tabs and trailing space

This commit is contained in:
tv 2015-11-01 13:22:15 +01:00
parent 3c1e220769
commit c29f45dec1

View File

@ -108,7 +108,10 @@ let
colorscheme industry colorscheme industry
syntax on syntax on
cmap w!! w!sudo tee % >/dev/null au Syntax * syn match Tabstop containedin=ALL /\t\+/
\ | hi Tabstop ctermbg=16
\ | syn match TrailingSpace containedin=ALL /\s\+$/
\ | hi TrailingSpace ctermbg=88
au BufRead,BufNewFile *.nix so ${pkgs.writeText "nix.vim" '' au BufRead,BufNewFile *.nix so ${pkgs.writeText "nix.vim" ''
setf nix setf nix