From 0ed5bc6917eba01352d29c0ff009c5412d3f5ae5 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 6 Jul 2017 22:44:31 +0200 Subject: vimrc improved regex for highlighting unwanted tab and space chars --- vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc b/vimrc index 4b19f14..c83c462 100644 --- a/vimrc +++ b/vimrc @@ -157,7 +157,7 @@ set list " show invisible character set listchars=tab:>-,trail:-,precedes:<,extends:> augroup aug:HighlightTrailingWhitespace autocmd! - autocmd BufEnter * 2match Error /\s\+$/ + autocmd BufEnter * 2match Error /\m\(\s\+$\|\([^\t]\)\@<=\t\)/ autocmd BufLeave * 2match none augroup end -- cgit v1.2.3