3 **[vi](https://en.wikipedia.org/wiki/Vi)** is the _de facto_ standard
4 Unix editor, you find it in every *NIX derived OS.
6 Here you will find a collection of commands, command sequences in
7 [vi(1)](https://man.openbsd.org/vi.1)/[ex(1)](https://man.openbsd.org/ex.1)
8 or with 3rd party unitilities which make
9 **[vi](https://en.wikipedia.org/wiki/Vi)** rock. These all work
10 with at least [nvi](https://en.wikipedia.org/wiki/Nvi) 1.79 and
13 Helpful documents:<br />
14 - [Roman Zolotarev: Edit text with vi(1)](https://rgz.ee/vi.html)<br />
15 - [Jeff W: vi help](http://www.jeffw.com/vi/vi_help.txt)<br />
16 - [Maarten Litmaath: vi reference](http://www.ungerhu.com/jxh/vi.html)<br />
17 - [alphanrrrd: extremely concise cheatsheet](http://www.alphanrrrd.org/vi.html)<br />
18 - [ViEmu: Graphical vi cheatsheet](http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html)
20 #### Yank / delete an arbitrary number of lines
22 1) mark the first line: mk
26 4) move to destination line
29 #### Apply regex to an arbitrary number of lines
31 1) mark the first line: mk
32 2) mark the last line: ml
35 #### Add # to block of text
39 #### Remove trailing whitespace of block of text
43 #### Write file as root
47 #### Diff the file on disk with the file in the buffer
51 #### Make a backup of the file on disk
63 <sub><sup>} won't be shown in the command.</sup></sub>
65 #### Sort from current line to EOF
69 <sub><sup>G won't be shown in the command.</sup></sub>
79 <sub><sup>} won't be shown in the command.</sup></sub>
81 #### Uniq from current line to EOF
85 <sub><sup>G won't be shown in the command.</sup></sub>
91 #### Select a column (3rd) from formated text seperated by ':'
93 :%!awk -F':' '{print $3}'