From db3842d60204d501680335bc1caf950c940462dc Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 3 Aug 2019 03:51:31 +0200 Subject: vim: Exempt xt and strace from linelen highlight Both strace and xt are trace log formats, so imposing my own distaste for overly long line length won't make a difference, as they won't change their "coding style" ;-) Signed-off-by: aszlig --- pkgs/aszlig/vim/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs') diff --git a/pkgs/aszlig/vim/default.nix b/pkgs/aszlig/vim/default.nix index ddad7979..5a2a3962 100644 --- a/pkgs/aszlig/vim/default.nix +++ b/pkgs/aszlig/vim/default.nix @@ -444,8 +444,8 @@ let " prevent colorscheme from overriding these highlights au ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red - " highlight everything exceeding 79 characters (except for CSV) - au BufWinEnter * if &ft !=# 'csv' + " highlight everything exceeding 79 characters (with exceptions) + au BufWinEnter * if index(['csv', 'strace', 'xt'], &ft) < 0 \ | let w:m2=matchadd('ErrorMsg', '\%>79v.\+', -1) \ | endif -- cgit 1.4.1