Switch to "Ex" mode with Vim editing
gQ
Example
Normal 0 / 2Ex 1 / 2Normal 2 / 2Switch to "Ex" mode with Vim editing.
Enter Ex mode with the illustrated colon prompt.
Ex input
- Prompt
:- Editing
Vim command-line editing available
Return from Ex mode to the Normal-mode editor.
Before & after
Before
After
ILLUSTRATION. No mapping overrides Q. Enter the documented Ex mode, then use vi to return to Normal mode.
one two
three fourCursor on line 1, column 1Details & Vim help
Switch to "Ex" mode with Vim editing. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.