Vim: How to Remove Trailing Whitespace on Save in Vim
Trailing whitespace can be a real pain - especially when diffing changes between two versions of a file. Fortunately for vim users, there is an easy way to eliminate unwanted trailing whitespace without having to think about it.