From 7be04bfc63658fb5c19f074b0668ed68ee70c2bb Mon Sep 17 00:00:00 2001 From: Sonny Date: Mon, 2 Jul 2018 14:24:56 +0200 Subject: [PATCH] Color trailing spaces --- vim/.vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index 537920c..3e5571f 100755 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -40,6 +40,13 @@ if exists('+termguicolors') colorscheme breezy endif +" Color trailing spaces with red color +highlight ExtraWhitespace ctermbg=red guibg=red +match ExtraWhitespace /\s\+$/ +autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ +autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@