summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc2
1 files changed, 1 insertions, 1 deletions
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