summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--software/vim.page5
1 files changed, 5 insertions, 0 deletions
diff --git a/software/vim.page b/software/vim.page
index c0d339f..f4b7e95 100644
--- a/software/vim.page
+++ b/software/vim.page
@@ -61,3 +61,8 @@ If you accidently opened a file you can't write to, you can write out as root
using::
:w !sudo tee %
+
+Strip all trailing whitespace from a file::
+
+ :%s/\s\+$//
+