diff --git a/index.md b/index.md index 7a9c18d..4efb209 100644 --- a/index.md +++ b/index.md @@ -59,6 +59,13 @@ Tested with [nvi](https://en.wikipedia.org/wiki/Nvi) 1.79 and 2.1.3 (unicode). +## Remove tabs + +
+:%s/<CTRL-V><TAB>//g
+
+ + ## Remove trailing whitespace from a block
@@ -100,6 +107,11 @@ N = 10
 
+## Search/replace ^M with LF + + :g/<CTRL-V><ENTER>/s///g + + ## Write the file as root :w !doas tee % @@ -224,6 +236,11 @@ map gF :%!fmt -s<CTRL-V><ENTER> :%s/.*/\L&/ +## Surround text with pattern + + :%s/.*/`pattern` & `pattern`/ + + ## Join all lines :%j