Code/Vim Cheatsheet

< Return to code directory

This is an interactive Vim cheatsheet meant to comprehensively cover all commands. It is based off this cheatsheet which only covers the basic normal mode commands.

This cheatsheet is keyboard operated — type to view multi-character commands starting with a prefix. This will also bring up a longer description of the command. Because some keys have special meanings, you can also click on them to activate them.
Control acts like a leader key.
Use backspace to delete the last inputted character.
To see commands in other modes, type a command that has you enter that mode.
Use escape to return to normal mode.


Legend

motion
moves the cursor, or defines the range for an operator.
jump
also moves the curor, but not noted as such in the Vim manual.
command
direct action commands.
operator verb
commands that take an operator (followed by preposition + noun OR motion).
operator prep.
"spatial relation" to apply to the verb-noun interaction.
operator noun
what the operator verb acts on.
oneshot
enters a oneshot mode.
extra
requires additional input, or unused.
prefix to Ex command
colored differently for ease of discovering Ex commands.
i enters insert or replace mode
needs char argument after.

Additional notes

The longer descriptions are from the index page of the Nvim manual. They're still pretty short, so if you want to look more into the commands you'll have to consult with the manual.

Only the commands which are different in visual mode are shown in visual mode.