VIM · REFERENCE

Vim Commands Cheat Sheet

Searchable reference for Vim modes, movement, editing, copy/paste, search & replace and file commands.

Search

29 commands

How to use this Vim cheat sheet

Search or filter by category to find the Vim command you need, then click the copy icon to grab it. Vim commands are modal — most only work in Normal mode, reached by pressing Esc.

Most-used Vim commands

Day-to-day essentials include i to insert, Esc to return to Normal mode, :wq to save and quit, dd to delete a line, and /pattern to search.

Frequently Asked Questions

How do I quit Vim?

Press Esc to make sure you're in Normal mode, then type :q and press Enter to quit, :wq to save and quit, or :q! to quit without saving changes.

What is the difference between Normal mode and Insert mode?

Normal mode (the default) is for navigation and running commands — keys act as commands, not text input. Insert mode is for typing text, entered with i, a, or o, and exited by pressing Esc to return to Normal mode.