summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2017-07-06 22:44:31 +0200
committerjohannst <stoelp@eit.uni-kl.de>2017-07-06 22:44:31 +0200
commit0ed5bc6917eba01352d29c0ff009c5412d3f5ae5 (patch)
tree05392bf312bbe32ce16ca061e7dc319709387881
parenta16dfdb7ba623a6907b8c082596ac3d58585f9b6 (diff)
downloaddotfiles-0ed5bc6917eba01352d29c0ff009c5412d3f5ae5.tar.gz
dotfiles-0ed5bc6917eba01352d29c0ff009c5412d3f5ae5.zip
vimrc improved regex for highlighting unwanted tab and space chars
-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