<Esc>- exit current mode (back to NORMAL) -or- cancel current command- number
<command>- repeat <command> x number of times
k
h j l - basic arrow keys
f_-find characterF_- reversefindt_- findtill character (stop before character)T_- reverse findtill character (stop after character);- repeat previous scan movement,- repeat previous scan movement in reverse
w- jump forwards to beginning of nextwordW- jump forwards to beginning of nextWORDb- jumpbackwards to beginning of next wordB- jump backwards to beginning of next WORDe- jump forwards toend of next word (reverse withge)E- jump forwards to end of next WORD (reverse withgE)
<Aside: word vs. WORD>
A WORD is just a bigger version of a word. words are separated by whitespace and punctuation. WORDS are only separated by whitespace. Example:
test.api.py is a filehas 8 words but only 4 WORDS.
0- jump to beginning of line (column0)^- jump to first^o^-whitespace character$- jump to end of line (la$T character)
%- jump to matching character of a match pair- Default Pairs: () [] {}
:h matchpairsfor more info
i- enteriNSERT mode before cursorI- enterINSERT mode at beginning of linea- enter INSERT modeafter cursorA- enter INSERT modeAfter the line
d_<movement>_-delete up to movementc_<movement>_-change up to movementcc-change the current line (delete & replace)dd-delete the current linecc-change the current line (delete & replace)D- delete to end of lineC- change to end of line