From ab73763b4ff877e7f72ae8c9426becdcc7ea6f82 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Mon, 23 Jan 2017 20:33:13 -0800 Subject: [PATCH] Highlight trailing whitespace in vim. --- dotfiles/vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/vimrc b/dotfiles/vimrc index 5053a09..72725b4 100644 --- a/dotfiles/vimrc +++ b/dotfiles/vimrc @@ -141,3 +141,7 @@ endif " Options for vimoutliner autocmd Filetype votl setlocal sts=4 + +" Highlight whitespace at end of file +highlight ExtraWhitespace ctermbg=red guibg=red +autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/ containedin=ALL