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 ;)
This obviously was too easy for me. To strip trailing whitespace when editing a file with
, just use
:%s/ *$//
{openx:6}
The space before the asterisk is important ;)