VI COMMAND NOTES
================
Purpose:
--------
vi is a text editor available on most Unix/Linux systems.
Modes:
------
1. Command mode (default)
2. Insert mode (press 'i')
3. Visual mode (press 'v')
4. Ex mode (press ':')
Common Commands:
----------------
i Enter insert mode
Esc Return to command mode
:w Save file
:q Quit
:wq Save and quit
:q! Quit without saving
dd Delete current line
yy Copy (yank) current line
p Paste copied line
u Undo last change
/word Search for 'word'
n Next search result
:%s/old/new/g Replace all 'old' with 'new'