Vim Recall繁體中文

Edit : command-line in command-line window

q:

Example

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

Edit : 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

Command history

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

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 1 ↩ echo 2

Command history

1
echo 1
2
echo 2

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.