From e7fb4ebb2b445f37f03b9983d737b7345533863f Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Fri, 25 Oct 2019 11:07:38 +0200 Subject: [PATCH] highlight: Mark space-tab mix as bad --- init.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/init.vim b/init.vim index bd44c54..e552eff 100644 --- a/init.vim +++ b/init.vim @@ -47,9 +47,12 @@ runtime plugsetup.vim " Attention: Must be run after plugsetup.vim " Trailing whitespace -highlight default link TrailingWhitespace SpellCap +highlight default link BadWhitespace SpellCap " Make trailing whitespace be flagged as bad. -au BufRead,BufNewFile * syn match TrailingWhitespace /\s\+$/ containedin=ALL +au BufRead,BufNewFile * syn match BadWhitespace /\s\+$/ containedin=ALL +" Make space before tab be flagged as bad and vice versa +au BufRead,BufNewFile * syn match BadWhitespace / \+\t/ containedin=ALL +au BufRead,BufNewFile * syn match BadWhitespace /\t \+/ containedin=ALL let g:airline_powerline_fonts=1 let g:airline#extensions#tabline#enabled=1 -- 2.39.5