Vim Recall繁體中文

Maximize window width

Ctrl-w |

Example

Normal 0 / 1

Give the active window as much width as possible.

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 3 · alpha.txt Active
78 columns × 11 lines
Window 4 · alpha.txt
1 columns × 11 lines
Window 2 · alpha.txt
78 columns × 10 lines
Window 1 · alpha.txt
1 columns × 10 lines

Start in Normal mode. Window labels are stable example identifiers, not Vim window numbers. The panel shows observed positions, sizes and the active window in an 80-column example workspace.

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

Example replayed in Vim

Give the active window as much width as possible.

Ctrl-w followed by the vertical bar expands the current window horizontally. A count sets a width in columns instead.