commit 64a200c4dfd1335df0eee085a40b55571ffa7ecc from: mischa date: Tue Jun 06 21:00:54 2023 UTC add extra tricks commit - 78d3de98900f1f4c617255d8f0ad4d80c11ce870 commit + 64a200c4dfd1335df0eee085a40b55571ffa7ecc blob - 7a9c18d028c0f17bfbf75cc47ac6af9a872c1a09 blob + 4efb2091598b9a7a9fe9428ece9a733b1e3f817b --- index.md +++ index.md @@ -59,6 +59,13 @@ Tested with [nvi](https://en.wikipedia.org/wiki/Nvi) 1 +## 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