modified trailing whitespace example

This commit is contained in:
mischa 2020-07-19 09:02:38 +02:00
parent b6ae084f50
commit 75e09f64a1
1 changed files with 6 additions and 2 deletions

View File

@ -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\+$//
<pre>
:%s/ *$//
</pre>
## Remove trailing whitespace from a block
:'k,'ls/\ *$//
<pre>
:'k,'ls/\ *$//
</pre>
## Remove the first N-characters from every line