Equivalent to :xit
Example
Normal 0 / 2Command-line 1 / 2Exited 2 / 2changed alpha
alpha two
alpha threeCursor on line 3, column 1changed alpha
alpha two
alpha threeCursor on line 3, column 1Vim is closed
Equivalent to :xit.
Windows
- Window 1 · alpha.txt Active
80 columns × 23 lines
Buffers
- 2 · alpha.txt Active
loaded · listed · modified · changed alpha ↩ alpha 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
Command entered · ready to apply
Windows
- Window 1 · alpha.txt Active
80 columns × 23 lines
Buffers
- 2 · alpha.txt Active
loaded · listed · modified · changed alpha ↩ alpha 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
Vim exited
Example files
- alpha.txt
changed alpha ↩ 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
changed alpha
alpha two
alpha threeCursor on line 3, column 1Windows
- Window 1 · alpha.txt Active
80 columns × 23 lines
Buffers
- 2 · alpha.txt Active
loaded · listed · modified · changed alpha ↩ alpha 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
Vim is closed
Example files
- alpha.txt
changed alpha ↩ 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
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 :xit. 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 :exi[t] 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.