Add Vim function to strip trailing whitespaces.