From: Stefan Huber Date: Fri, 25 Oct 2019 09:07:38 +0000 (+0200) Subject: highlight: Mark space-tab mix as bad X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=e7fb4ebb2b445f37f03b9983d737b7345533863f;p=vimconf.git highlight: Mark space-tab mix as bad --- 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