Default value for 'cedit': opens the command-line window; otherwise not used
Ctrl-f
Example
Command-line 0 / 1Normal 1 / 1one two
three four
five six
keepCursor on line 1, column 1echo 2
echo 1Cursor on line 2, column 6Default value for 'cedit': opens the command-line window; otherwise not used.
Windows
- Window 1 · [No Name] Active
80 columns × 23 lines
Buffers
- 1 · [No Name] Active
loaded · listed · alternate · one two ↩ three four
Command history
- 1
echo 2
Command applied
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 · echo 2 ↩ echo 1
Command history
- 1
echo 2
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
Command history
- 1
echo 2
echo 2
echo 1Cursor on line 2, column 6Windows
- 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 · echo 2 ↩ echo 1
Command history
- 1
echo 2
Start in Command-line mode.
Details & Vim help
Example replayed in Vim
Default value for 'cedit': opens the command-line window; otherwise not used. Use while editing a : command or / or ? search prompt; this edits or controls that prompt rather than running an Ex command. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.