projects
/
vimconf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
d874d9c
)
highlight: Mark space-tab mix as bad
author
Stefan Huber <shuber@sthu.org>
Fri, 25 Oct 2019 09:07:38 +0000
(11:07 +0200)
committer
Stefan Huber <shuber@sthu.org>
Fri, 25 Oct 2019 09:07:56 +0000
(11:07 +0200)
init.vim
patch
|
blob
|
history
diff --git
a/init.vim
b/init.vim
index bd44c548a27c725ae3d72609cb51868e96fcfc60..e552eff7ff6769794875699c15e8e438a86ad925 100644
(file)
--- a/
init.vim
+++ b/
init.vim
@@
-47,9
+47,12
@@
runtime plugsetup.vim
" Attention: Must be run after plugsetup.vim
" Trailing whitespace
" Attention: Must be run after plugsetup.vim
" Trailing whitespace
-highlight default link
Trailing
Whitespace SpellCap
+highlight default link
Bad
Whitespace SpellCap
" Make trailing whitespace be flagged as bad.
" 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
let g:airline_powerline_fonts=1
let g:airline#extensions#tabline#enabled=1