summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbnewbold <bryan@octopart.com>2011-11-25 21:37:57 -0500
committerbnewbold <bryan@octopart.com>2011-11-25 21:37:57 -0500
commit1e101f98c410a90dbe21eed29a927c42060715a0 (patch)
tree71ba337bf71773efbde2f528a0328b004239399b
parentac9c2969788a89bb122f19285679c0bc6f748ca4 (diff)
downloadknowledge-1e101f98c410a90dbe21eed29a927c42060715a0.tar.gz
knowledge-1e101f98c410a90dbe21eed29a927c42060715a0.zip
remove whitespace vim one-line
-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\+$//
+