"" from http://www.amix.dk/vim/vimrc.html
function! DeleteTrailingWS()
normal mz
%s/\s\+$//ge
normal `z
endfunction
if has("autocmd")
autocmd BufWritePre *.{pl,py,vim,c,h} call DeleteTrailingWS()
autocmd BufWritePre */mutt-* call DeleteTrailingWS()
endif