Vim Commands Cheatsheet

All Vim commands grouped by mode — searchable with one-click copy

A Vim commands cheatsheet puts every essential key binding at your fingertips — from navigating files at blazing speed in Normal mode to selecting blocks of text in Visual mode and running powerful substitutions from the command line. Whether you are just escaping Vim for the first time or optimizing your workflow as a power user, this interactive reference covers all Vim modes with descriptions and one-click copy buttons.

How to Use This Vim Commands Cheatsheet

This interactive Vim commands cheatsheet is your go-to reference for every key binding across all of Vim's modes. Whether you are learning Vim for the first time, returning after a break, or looking to deepen your mastery of macros and registers, every command is organized by mode and searchable in seconds.

Understanding Vim Modes

Vim is a modal editor, meaning keystrokes behave differently depending on the active mode. Normal mode is the default — you navigate, delete, yank, and run commands but do not type text. Insert mode (entered with i, a, o, etc.) is where you type new text. Visual mode lets you select ranges of text to operate on. Command-line mode (entered with :) lets you run ex commands like saving and search-replace.

Searching for Commands

Type any keyword into the search bar to instantly filter commands. You can search by key (e.g., gg), by description (e.g., "delete word"), or by the mode name. Results update live as you type. Click Clear or delete the search text to return to the full list.

Filtering by Mode

Use the mode filter tabs to focus on a specific area. Normal: Movement covers character, word, line, and file navigation. Normal: Editing covers delete, yank, paste, change, and undo. Normal: Search covers forward and backward search, repeating matches, and global substitution. Insert Mode covers how to enter and exit text-entry mode. Visual Mode covers character, line, and block selection with operators. Command-line covers ex commands like :w, :q, and splits. Windows & Tabs covers split windows and tab pages. Macros & Registers covers recording and replaying keystroke sequences.

Copying Commands

Every command card has a Copy button. Click it to copy the key or command to your clipboard. The button briefly shows "Copied!" to confirm. For key combos shown with Ctrl+, hold Ctrl while pressing the letter. For commands starting with :, type them in Command-line mode and press Enter.

Common Vim Workflows

Most Vim editing follows a few core patterns. To edit a word: position your cursor on it in Normal mode, press ciw (change inner word), type the replacement, then press Esc. To delete a line: dd. To find and replace globally: :%s/old/new/g. To record a macro: qa, perform actions, q, then @a to replay. This Vim key bindings reference covers every step so you can stay in your editor without interruption.

Frequently Asked Questions

Is this Vim cheatsheet free to use?

Yes, this Vim commands cheatsheet is completely free with no signup, account, or payment required. All commands and their descriptions are available instantly in your browser.

Is my data safe when using this tool?

Absolutely. This cheatsheet runs entirely in your browser — no data is sent to any server. Your searches and usage are completely private.

What Vim modes are covered in this cheatsheet?

The cheatsheet covers all major Vim modes: Normal mode (movement and editing), Insert mode (typing text), Visual mode (selecting text), Command-line mode (ex commands), plus Window and Tab management and Macros and Registers. Over 80 commands are included.

How do I exit Vim?

To exit Vim, first press Esc to make sure you are in Normal mode, then type :q and press Enter to quit. If you have unsaved changes, use :q! to discard them and quit, or :wq to save and quit. You can also use ZZ (shift+z twice) in Normal mode as a shortcut to save and quit.

What is the difference between Vim modes?

Vim has several distinct modes. Normal mode is the default — you navigate and issue commands but cannot type text. Insert mode (entered with i, a, o, etc.) lets you type text. Visual mode (entered with v, V, or Ctrl+v) lets you select text for operations. Command-line mode (entered with :) lets you run ex commands like saving, quitting, and search-replace.

How do I search and replace text in Vim?

In Normal mode, use :s/old/new/ to replace the first occurrence on the current line, or :s/old/new/g to replace all on the line. Use :%s/old/new/g to replace all occurrences across the entire file. Add /i at the end (e.g., :%s/old/new/gi) for case-insensitive replacement.

How do I undo and redo in Vim?

In Normal mode, press u to undo the last change, and press Ctrl+r to redo (re-apply) a change that was undone. Vim has a powerful multi-level undo history, so you can press u multiple times to undo several changes in sequence.

What are Vim macros and how do I record them?

Vim macros record a sequence of keystrokes and let you replay them. In Normal mode, press q followed by a letter (e.g., qa) to start recording into register a. Perform your actions, then press q again to stop recording. Replay the macro with @a, and repeat it with @@. Macros are powerful for repetitive editing tasks.