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\+\%#\@