Vim
Modes
- Normal (command); entered with Esc
- Insert; entered with i
- Visual
Commands
Motion
Motion commands may be preceded by a numeric count, indicating the number of units to move:
- Character movement:
- h left
- j down
- k up
- l right
- Word movement:
- b back
- w forward
- e end
- Line movement:
- 0 start of line
- $ end of line
- Document movement:
- gg beginning
- G end
Text selection
- i inner (bracket)
Operator
Combine operators with a motion or text selection to execute them over a range, or repeat them to apply them to the line under the cursor (e.g. d, d to delete a line).
- d delete
- c change
- . repeat
- u undo
- / find
Backlinks