Vim Recall繁體中文

Like ":badd" but also set the alternate file

:balt

Example

Normal 0 / 2

Like ":badd" but also set the alternate file.

Buffers

1 · alpha.txt Active
loaded · listed · one two ↩ three four
2 · beta.txt
loaded · listed · beta one ↩ beta two
3 · gamma.txt
loaded · listed · alternate · gamma one ↩ gamma two
Before & after

Before

Buffers

1 · alpha.txt Active
loaded · listed · one two ↩ three four
2 · beta.txt
loaded · listed · beta one ↩ beta two
3 · gamma.txt
loaded · listed · alternate · gamma one ↩ gamma two

After

Buffers

1 · alpha.txt Active
loaded · listed · one two ↩ three four
2 · beta.txt
loaded · listed · alternate · beta one ↩ beta two
3 · gamma.txt
loaded · listed · gamma one ↩ gamma two

Start in Normal mode. Three named example buffers are prepared; the panel identifies loaded, listed, modified and active buffers.

Sample buffer
one two
three four
five six
keep
Cursor on line 1, column 1
Details & Vim help

Example replayed in Vim

Like ":badd" but also set the alternate file. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.