Insert Before the Cursor
Starts typing at the cursor position.
Normal, insert, visual and command-line keys for the Vim editor. Every item below is clearly marked as a shortcut, command, or syntax reference.
Starts typing at the cursor position.
Goes back to Normal mode.
Removes the whole line the cursor is on.
Type the text, then press Enter to search down the file.
Reverses the last change.
Writes the file to disk and keeps editing.
Writes the file and closes Vim.
Moves the cursor one character at a time.
Starts typing at the cursor position.
Goes back to Normal mode.
Removes the whole line the cursor is on.
Type the text, then press Enter to search down the file.
Reverses the last change.
Writes the file to disk and keeps editing.
Writes the file and closes Vim.
Moves the cursor one character at a time.
Moves the cursor one line at a time.
Creates a new line under the current one and starts typing.
Yanks the whole line into the register.
Highlights text character by character.
Goes to the next match.
Closes the file and throws away any changes.
Jumps to the start of the next word.
Moves to the first character in the line.
Moves to the last character in the line.
Moves to the very first line.
Moves to the very last line.
Moves the view down half a screen without moving the cursor far.
Moves the view up half a screen.
Creates a new line over the current one and starts typing.
Removes the character the cursor sits on.
Deletes the whole line and puts you in Insert mode.
Re-applies the change you undid.
Jumps to the start of the previous word.
Jumps to the next copy of a character you type, or the previous one with the shift version.
Jumps between a bracket, brace, comment or #if and its pair.
Type the line number first, then the command.
Removes everything from the cursor to the end of the line.
Swaps the character under the cursor for one you type.
Pulls the line below up onto the current line.
Type the text, then press Enter to search up the file.
Finds the next copy of the word you are standing on.
Jumps to where the name under the cursor is defined in this file.
Runs a single Normal-mode command, then drops you straight back into typing.
Highlights a rectangular block of text.
Jumps to the last character of the current or next word.
Moves past any indentation to the first real character.
Moves to the first, middle or last line you can see.
Jumps back to where you were before the last move.
Moves the view down a whole screen.
Moves the view up a whole screen.
Nudges the view down a single line.
Nudges the view up a single line.
Redraws so the line you are on sits in the middle of the screen.
Redraws so the line you are on sits at the top of the screen.
Starts typing just after the cursor.
Starts typing at the first real character of the line.
Starts typing at the end of the line.
Removes the character behind the cursor.
Deletes from the cursor to the end of the line and starts Insert mode.
Toggles upper and lower case and moves on.
Puts the copied text after the cursor.
Puts the copied text before the cursor.
Highlights whole lines.
Brings back the highlight you just dropped.
Goes to the previous match.
Puts the current line back to how it was when you entered it.
Closes the file, but only if nothing changed.
Writes every changed file at once.
Entries with recorded Mac keys are listed below. Official source links are on each reference page.
Examples in this reference include Insert Before the Cursor (i), Leave Insert Mode (Esc), Delete the Current Line (dd), Search Forward (/ then Enter), Undo (u).
Mac key values are listed for 61 of the 61 entries. Use the value shown for the specific action; do not assume Ctrl can be replaced with Cmd. Each reference page links its official source.
Some reference pages include a menu alternative. When no equivalent is documented here, consult the linked official help rather than assuming a key combination.