From c29f45dec1c41f6ab12a9b2c4f91e70a4bbc830c Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2015 13:22:15 +0100 Subject: tv vim: colorize tabs and trailing space --- tv/2configs/vim.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tv') diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 6691350eb..2e49a0ca0 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 -- cgit v1.2.3