w next word
b previous word
() previous/next sentence
{} previous/next paragraph
x delete
dw delete word
dd delete one line
#dd delete # lines (starting with line cursor is on, down)
rx replace letter with x
:q quit
:q! quit without saving
:w write
:w filename save as filename
u undo
:set nu line numbers
:set nonu turn off line numbers
in ~/.vimrc
Issue: arrow keys and backspace key aren't working.
Add :set nocompatible in ~/.vimrc
Add alias vi=vim to .bash_aliases
SEARCH
To go to a line number x, use the command :x
b go BACK to beginning of last word
e go to END of next word
w go to beginning of next WORD
B go BACK to beginning of last word (ending with a space)
E go to END of next word (ending with a space)
W go to beginning of next WORD (ending with a space)
/word
search for word
n searches for next instance, N searches for previous instance.