Vim Recall繁體中文

Equivalent to :wqall

:xall

Example

Normal 0 / 2
changed gamma
gamma two
gamma three
Cursor on line 3, column 1

Equivalent to :wqall.

Windows

Window 3 · gamma.txt Active
40 columns × 11 lines
Window 1 · alpha.txt
39 columns × 22 lines
Window 2 · beta.txt
40 columns × 10 lines

Buffers

2 · alpha.txt
loaded · listed · modified · changed alpha ↩ alpha two
3 · beta.txt
loaded · listed · modified · alternate · changed beta ↩ beta two
4 · gamma.txt Active
loaded · listed · modified · changed gamma ↩ gamma two

Example files

alpha.txt
alpha one ↩ alpha two ↩ alpha three
beta.txt
beta one ↩ beta two ↩ beta three
delta.txt
delta one ↩ delta two
gamma.txt
gamma one ↩ gamma two ↩ gamma three
Before & after
Before
changed gamma
gamma two
gamma three
Cursor on line 3, column 1

Windows

Window 3 · gamma.txt Active
40 columns × 11 lines
Window 1 · alpha.txt
39 columns × 22 lines
Window 2 · beta.txt
40 columns × 10 lines

Buffers

2 · alpha.txt
loaded · listed · modified · changed alpha ↩ alpha two
3 · beta.txt
loaded · listed · modified · alternate · changed beta ↩ beta two
4 · gamma.txt Active
loaded · listed · modified · changed gamma ↩ gamma two

Example files

alpha.txt
alpha one ↩ alpha two ↩ alpha three
beta.txt
beta one ↩ beta two ↩ beta three
delta.txt
delta one ↩ delta two
gamma.txt
gamma one ↩ gamma two ↩ gamma three
After

Vim is closed

Example files

alpha.txt
changed alpha ↩ alpha two ↩ alpha three
beta.txt
changed beta ↩ beta two ↩ beta three
delta.txt
delta one ↩ delta two
gamma.txt
changed gamma ↩ gamma two ↩ gamma three

Start in Normal mode. This command actually exits the isolated Vim process. Closed editor state is confirmed by VimLeavePre and successful process termination; saved content is read from temporary example files after exit.

Details & Vim help

Example replayed in Vim

Equivalent to :wqall. 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. The index spelling :xa[ll] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.