From 75e09f64a19ee0d70d820caa9494286ffa605c9a Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 19 Jul 2020 09:02:38 +0200 Subject: [PATCH] modified trailing whitespace example --- index.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.md b/index.md index fb3a830..7a9c18d 100644 --- a/index.md +++ b/index.md @@ -54,12 +54,16 @@ Tested with [nvi](https://en.wikipedia.org/wiki/Nvi) 1.79 and 2.1.3 (unicode). ## Remove trailing whitespace from every line - :%s/\s\+$// +
+:%s/ *$//
+
## Remove trailing whitespace from a block - :'k,'ls/\ *$// +
+:'k,'ls/\ *$//
+
## Remove the first N-characters from every line