diff options
author | tv <tv@krebsco.de> | 2015-11-01 13:22:15 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2015-11-01 13:22:15 +0100 |
commit | 78b2bbba6d4f04c7950cf01cb3fa51420ef34d44 (patch) | |
tree | ef217ef76017c47182ab0b26d17bc7adb264bbca /tv | |
parent | b6848add5986663f6f2b79cfc3bee61ab59424c6 (diff) |
tv vim: colorize tabs and trailing space
Diffstat (limited to 'tv')
-rw-r--r-- | tv/2configs/vim.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 6691350..2e49a0c 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -108,7 +108,10 @@ let colorscheme industry 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" '' setf nix |