Adds a vim function to remove trailing spaces