From 24a0045d58a48d7a222825461ed03630f85e372d Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 20 Sep 2004 22:33:21 +0000 Subject: [PATCH] Add a commented-out recipe on making trailing whitespace explicit. If people think this is not too intrusive it could be uncommented. --- Misc/vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Misc/vimrc b/Misc/vimrc index 93abef637d0..85ce3483220 100644 --- a/Misc/vimrc +++ b/Misc/vimrc @@ -76,3 +76,10 @@ au BufNewFile *.py,*.pyw,*.c,*.h set fileformat=unix " Automatically indent: ``filetype indent on`` " Fold based on indentation: ``set foldmethod=indent`` + +" Make trailing whitespace explicit: +"highlight WhitespaceEOL ctermbg=red guibg=red +"match WhitespaceEOL /\s\+$/ +" or +"set list listchars=trail:- +