vim – Remove trailing whitespace

Last blog post, I mentioned you could clean up and reformat a file by using :retab.
This doesn’t remove unnecessary trailing whitespace though. To remove trailing whitespace, use the following:

Leave a Reply

You must be logged in to post a comment.