Vim Modes
a Append text following current cursor position
A Append text to the end of current line
i Insert text before the current cursor position
I Insert text at the beginning of the cursor line
o Open up a new line following the current line and add text there
O Open up a new line in front of the current line and add text there
Vim Commands
Create and write to file
1
:w file.txt
Edit existing file
1
:e file.txt
Save file
1
:wq
Overwrite existing file
1
:w! file_that_exists.txt
Read file
1
:r file.txt
Exit file without saving
1
:q!
Close current window
1
:q
Exit Vim
1
:qa!
Key Bindings
After
esc
Undo
u
Redo
Ctrl + r
One line up
Ctrl + e
One line down
Ctrl + y
One page up
Ctrl + f
One page down
Ctrl + b

