Skip to main content

Vim shortcuts

Your answer helps keep this page right.

Do these shortcuts work for you?

Three pairs make up the Entering Insert Mode section of the Vim list, and in each pair the second shortcut adds Shift to the letter of the first: Insert Before Cursor and Insert At Line Start, Append After Cursor and Append At Line End, Open Line Below and Open Line Above. Movement starts with Move Left, Move Down, Move Up and Move Right on four letters. Visual Mode uses one letter for Visual Character, Visual Line and Visual Block.

SetappAd
A shortcut to the best Mac apps

An essential toolbox for macOS and iOS.

Start with these

Tips for Vim

  • Delete Line dd and Yank Line yy show one letter twice.
  • In Save & Quit, Save :w, Quit :q, Save And Quit :wq and Force Quit :q! begin with a colon.
  • In Search, Next Match N and Previous Match ⇧N use one letter, the second with Shift.
Jump to section

Movement11

ActionShortcut
Move Left
Move Down
Move Up
Move Right
Next Word
Previous Word
End Of Word
Beginning Of Line
End Of Line
Go To Top
Go To Bottom

Entering Insert Mode6

ActionShortcut
Insert Before Cursor
Insert At Line Start
Append After Cursor
Append At Line End
Open Line Below
Open Line Above

Editing9

ActionShortcut
Delete Line
Yank Line
Paste After
Paste Before
Delete Character
Replace Character
Undo
Redo
Repeat Last Command

Save & Quit5

ActionShortcut
Save
Quit
Save And Quit
Force Quit
Save And Exit

Visual Mode3

ActionShortcut
Visual Character
Visual Line
Visual Block
Report a problem

GitHub is public. Email is private.

Frequently Asked Questions

How many keyboard shortcuts does Vim have on macOS?

Vim has 38 keyboard shortcuts on macOS, organized into 6 sections: Movement, Entering Insert Mode, Editing, Search, and more. This page lists all of them with searchable, organized shortcut tables.

Which Vim shortcuts should I learn first?

Start with Insert Before Cursor (I), Delete Line (dd), Undo (U), Redo (⌃R), Search Forward (/), Save And Quit (:wq). The sections on this page list the rest.

Can I download Vim shortcuts as a PDF?

Yes. Click the download button at the top of this page to generate a printable PDF cheat sheet with all 38 Vim shortcuts. The PDF includes organized sections, keycap-style key labels, and space for your own notes.

Where is the official Vim keyboard shortcuts documentation?

The official Vim keyboard shortcuts documentation is available on their website. Every shortcut on this page is sourced from and verified against the official documentation to ensure accuracy.

Do these Vim shortcuts work on all Mac keyboards?

Yes. These shortcuts work on all Mac keyboards, including MacBook built-in keyboards and external Apple keyboards. The modifier keys are Command (⌘), Option (⌥), Control (⌃), and Shift (⇧). On keyboards without a Function row, some F-key shortcuts may require holding the Fn key.

Maintained by

Access Vim shortcuts from your menu bar

KeyShortcut detects the active app and shows its shortcuts instantly. Switch it on in Settings. No memorization needed.