diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-12-24 23:43:30 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-12-24 23:43:30 (GMT) |
commit | a6ae8974c1992cdaf1a80a4b78abbd68bed90764 (patch) | |
tree | 9f292f0fec010ee950537fea7875f4cc1a55a516 /Misc | |
parent | 8d993aae8f0bca8e522babe619058ef8d3372b96 (diff) | |
download | cpython-a6ae8974c1992cdaf1a80a4b78abbd68bed90764.zip cpython-a6ae8974c1992cdaf1a80a4b78abbd68bed90764.tar.gz cpython-a6ae8974c1992cdaf1a80a4b78abbd68bed90764.tar.bz2 |
Make trailing whitespace explicit (including when it is an all-whitespace
line).
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/Vim/vimrc | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/Misc/Vim/vimrc b/Misc/Vim/vimrc index b178266..ae14e6a 100644 --- a/Misc/Vim/vimrc +++ b/Misc/Vim/vimrc @@ -42,8 +42,10 @@ au BufRead,BufNewFile Makefile* set noexpandtab " Use the below highlight group when displaying bad whitespace is desired highlight BadWhitespace ctermbg=red guibg=red -" Display tabs at the beginning of a line in Python mode as bad +" Display tabs at the beginning of a line in Python mode as bad. au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/ +" Make trailing whitespace be flagged as bad. +au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/ " Wrap text after a certain number of characters " Python: 79 @@ -85,12 +87,3 @@ au BufNewFile *.py,*.pyw,*.c,*.h set fileformat=unix " Keep indentation level from previous line: ``set autoindent`` " Folding based on indentation: ``set foldmethod=indent`` - -" Make trailing whitespace explicit (left off since this will automatically -" insert the highlight or characters *as you type*, which can get annoying): -"``match BadWhitespace /\s\+$/`` -" -" or, for a non-colored, character-based solution: -" -"``set list listchars=trail:-`` - |