From 1e101f98c410a90dbe21eed29a927c42060715a0 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Fri, 25 Nov 2011 21:37:57 -0500 Subject: remove whitespace vim one-line --- software/vim.page | 5 +++++ 1 file changed, 5 insertions(+) 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\+$// + -- cgit v1.2.3