Edit / command-line in command-line window
q/
Example
Normal 0 / 1Normal 1 / 1one two
three four
five six
keepCursor on line 1, column 1one
two
Cursor on line 3, column 1Edit / command-line in command-line window.
Windows
- Window 1 · [No Name] Active
80 columns × 23 lines
Buffers
- 1 · [No Name] Active
loaded · listed · alternate · one two ↩ three four
Edit / command-line in command-line window
Windows
- Window 1 · [No Name]
80 columns × 14 lines
- Window 2 · [No Name] Active
80 columns × 7 lines
Buffers
- 1 · [No Name]
loaded · listed · alternate · one two ↩ three four- 2 · [No Name] Active
loaded · listed · one ↩ two
Before & after
one two
three four
five six
keepCursor on line 1, column 1Windows
- Window 1 · [No Name] Active
80 columns × 23 lines
Buffers
- 1 · [No Name] Active
loaded · listed · alternate · one two ↩ three four
one
two
Cursor on line 3, column 1Windows
- Window 1 · [No Name]
80 columns × 14 lines
- Window 2 · [No Name] Active
80 columns × 7 lines
Buffers
- 1 · [No Name]
loaded · listed · alternate · one two ↩ three four- 2 · [No Name] Active
loaded · listed · one ↩ two
Start in Normal mode. The command-line window displays prepared command or search history as editable text. This example opens the window without submitting an entry.
Details & Vim help
Example replayed in Vim
Edit / command-line in command-line window. Use in Normal mode. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.