Like ":badd" but also set the alternate file
:balt
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Like ":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
Command entered · ready to apply
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
Command applied
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
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.
one two
three four
five six
keepCursor on line 1, column 1Details & 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.