:
The
Command
The : command in Vim
Command
command line
Enter the command-line (Ex) mode. Type a command and press Enter to execute. Essential commands:
:w save, :q quit, :s substitute, :g global, :! shell.Examples
:w(save):q!(quit without saving):%s/old/new/g(replace all):g/pattern/d(delete matching lines):help topic:set number
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related commands