Window Commands (vim)
The following table lists common commands for controlling
windows in vim. See also the
split, vsplit, and resize commands in the later section "Alphabetical Summary of ex
Commands.” For brevity, control characters are marked in the
following list by ^.
|
|
Open a new window. |
|
|
Open file in a new window. |
|
|
Split the current window. With file, edit that file in the new window. |
|
|
Same as |
|
|
Edit next file in file list in new window. |
|
|
Like |
|
|
Close current window. |
|
|
Hide current window, unless it is the only visible window. |
|
|
Make current window the only visible one. |
|
|
Resize window to num lines. |
|
|
Write all changed buffers to their files. |
|
|
Close all buffers and exit. |
|
|
Same as |
|
|
Same as |
|
|
Open new window with alternate (previously edited) file. |
|
|
Same as |
|
|
Same as |
|
|
Move cursor to next/previous window. |
|
|
Move cursor to previous window. |
|
|
Move cursor to window on left/right. |
|
|
Move cursor to window on top/bottom of screen. |
|
|
Move current window to top/bottom of screen. |
|
|
Move current window to far left/right of screen. |
|
|
Rotate windows down/up. |
|
|
Increase/decrease current window size. |
|
|
Make all windows same height. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access