Vim Recall繁體中文

Close current window

:close

Example

Normal 0 / 2

Close current window.

Windows

Window 3 · alpha.txt Active
40 columns × 11 lines
Window 4 · alpha.txt
39 columns × 11 lines
Window 2 · alpha.txt
40 columns × 10 lines
Window 1 · alpha.txt
39 columns × 10 lines
Before & after

Before

Windows

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

After

Windows

Window 2 · alpha.txt Active
40 columns × 22 lines
Window 3 · alpha.txt
39 columns × 11 lines
Window 1 · alpha.txt
39 columns × 10 lines
Details & Vim help

Example replayed in Vim

Close current window. 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 :clo[se] 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.