Vim Recall繁體中文

Default value for 'cedit': opens the command-line window; otherwise not used

Ctrl-f

Example

Command-line 0 / 1
one two
three four
five six
keep
Cursor on line 1, column 1

Default 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
Before & after
Before
one two
three four
five six
keep
Cursor on line 1, column 1

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
After
echo 2
echo 1
Cursor on line 2, column 6

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

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.