I am getting \'trailing whitespace\' errors trying to commit some files in git.
I want to remove these trailing whitespace characters automatically right before I sa
I found the answer here.
Adding the following to my .vimrc file did the trick.
autocmd BufWritePre *.py :%s/\s\+$//e