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