summaryrefslogtreecommitdiffstats
path: root/Misc/vimrc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-09-20 22:33:21 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-09-20 22:33:21 (GMT)
commit24a0045d58a48d7a222825461ed03630f85e372d (patch)
treed372394b858d3de2b7b8cfc5a46e56da38968641 /Misc/vimrc
parentbab3e996894032e96993575182105817aedf90e0 (diff)
downloadcpython-24a0045d58a48d7a222825461ed03630f85e372d.zip
cpython-24a0045d58a48d7a222825461ed03630f85e372d.tar.gz
cpython-24a0045d58a48d7a222825461ed03630f85e372d.tar.bz2
Add a commented-out recipe on making trailing whitespace explicit.
If people think this is not too intrusive it could be uncommented.
Diffstat (limited to 'Misc/vimrc')
-rw-r--r--Misc/vimrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/Misc/vimrc b/Misc/vimrc
index 93abef6..85ce348 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:-
+