Execute a command without leaving the editor.

Section: Ex command-line essentials

Run a shell command

vim
vim
:!ls
Explanation

Useful for quick file, git, and build checks.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Ex command-line essentials
Insert shell output into buffer
Read command output below the cursor line.
OpenIn sheetvimsame section
Write and quit
Save your changes or exit cleanly.
OpenIn sheetvimsame section
Open the command-line window
Edit command history in a full window.
OpenIn sheetvimsame section
Open a help topic
View docs for a keyword or command.
OpenIn sheetvim1 tag match
Save a session file
Store tabs, windows, and buffers.
OpenIn sheetvim1 tag match
Look up special key notation
Search for control-key topics and special commands.
OpenIn sheetvim1 tag match