Vi Notes

Opening Files and Windows

Use syntax vi <filename> to open a file for editing.
Open multiple files with vi -o <filename1> <filename2>.
Switch between active windows with CTRL w.
Close only the active window with :q.

Modes

Use lower case mode controls to enter mode then ESC to exit back to normal mode. Use upper case I and A to enter insert and append modes at the beginning and end of the line respectively.

Copy, Paste, Undo, and Delete

Search

Save & Exit