]> granicus.if.org Git - python/commitdiff
Add a commented-out recipe on making trailing whitespace explicit.
authorBrett Cannon <bcannon@gmail.com>
Mon, 20 Sep 2004 22:33:21 +0000 (22:33 +0000)
committerBrett Cannon <bcannon@gmail.com>
Mon, 20 Sep 2004 22:33:21 +0000 (22:33 +0000)
If people think this is not too intrusive it could be uncommented.

Misc/vimrc

index 93abef637d06ad41ceb9f1c938a85f4d36ee1fb2..85ce3483220d5a647aea84fd397552620cef2564 100644 (file)
@@ -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:-
+