Vim Notes
Vim Modes
Section titled “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
Section titled “Vim Commands”Create and write to file
Section titled “Create and write to file”:w file.txtEdit existing file
Section titled “Edit existing file”:e file.txtSave file
Section titled “Save file”:wqOverwrite existing file
Section titled “Overwrite existing file”:w! file_that_exists.txtRead file
Section titled “Read file”:r file.txtExit file without saving
Section titled “Exit file without saving”:q!Close current window
Section titled “Close current window”:qExit Vim
Section titled “Exit Vim”
:qa!Key Bindings
Section titled “Key Bindings”After
esc
u
Ctrl + r
One line up
Section titled “One line up”Ctrl + e
One line down
Section titled “One line down”Ctrl + y
One page up
Section titled “One page up”Ctrl + f
One page down
Section titled “One page down”Ctrl + b