Commit Diff


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
 </pre>
 
 
+## Remove tabs
+
+<pre>
+:%s/<u>&lt;CTRL-V&gt;&lt;TAB&gt;</u>//g
+</pre>
+
+
 ## Remove trailing whitespace from a block
 
 <pre>
@@ -100,6 +107,11 @@ N = 10
 </pre>
 
 
+## Search/replace ^M with LF
+
+	:g/<u>&lt;CTRL-V&gt;&lt;ENTER&gt;</u>/s///g
+
+
 ## Write the file as root
 
 	:w !doas tee %
@@ -224,6 +236,11 @@ map gF :%!fmt -s<u>&lt;CTRL-V&gt;&lt;ENTER&gt;</u>
 	:%s/.*/\L&/
 
 
+## Surround text with pattern
+
+	:%s/.*/`pattern` & `pattern`/
+
+
 ## Join all lines
 
 	:%j