vi: Strip trailing Whitespace

This obviously was too easy for me. To strip trailing whitespace when editing a file with

vi

, just use

:%s/ *$//

{openx:6}

The space before the asterisk is important ;)