Auto strip trailing whitespace in Python modules

--HG--
extra : amend_source : 5e2c413a7e9ce3c04bb86abf5254631db449d443
master
Dustin C. Hatch 2012-12-19 00:04:00 -06:00
parent 62e11faaa5
commit 8f1fa83c6d
1 changed files with 5 additions and 0 deletions

View File

@ -5,3 +5,8 @@ setlocal expandtab
setlocal autoindent setlocal autoindent
setlocal smartindent setlocal smartindent
setlocal cinwords=if,elif,else,for,while,try,except,finally,def,class setlocal cinwords=if,elif,else,for,while,try,except,finally,def,class
if !exists("stripwhitespace_autocommand")
let stripwhitespace_autocommand = 1
aug stripwhitespace
autocmd stripwhitespace BufWritePre <buffer> %s/\s\+$//e
endif