Delete all Trailing Whitespace in Vim
This short guide will tell you how to delete all trailing whitespace in Vim. You can also delete trailing whitespace on save in Vim!
Posted in these interests:
This short guide will tell you how to delete all trailing whitespace in Vim. You can also delete trailing whitespace on save in Vim!
:%s/\s\+$//
You probably already know how to use vim's basic undo and redo features. For a quick refresher, read this short tutorial on how to use vim redo and undo.