Post

25 Window commands

KeystrokesCommand nameAction
C-x 2 File Split Windowsplit-window-verticallyDivide current window into two windows, one above the other.
C-x 3split-window-horizontallyDivide current window into two side-by-side windows.
C-x >scroll-rightScroll the window right.
C-x <scroll-leftScroll the window left.
C-x oother-windowMove to the other window; if there are several, move to the next window (see “Navigating Windows”).
C-x 0delete-windowDelete the current window.
C-x 1 File Unsplit Windowsdelete-other-windowsDelete all windows but this one.
(none)delete-windows-onDelete all windows on a given buffer.
C-x ^enlarge-windowMake window taller.
(none)shrink-windowMake window shorter.
C-x }enlarge-window-horizontallyMake window wider.
C-x {shrink-window-horizontallyMake window narrower.
C-x -shrink-window-if-larger-than-bufferMake window smaller if buffer is smaller than window.
C-x +balance-windowsMake windows the same size.
C-M-vscroll-other-windowScroll other window.
C-x 4 ffind-file-other-windowFind a file in the other window.
C-x 4 bswitch-to-buffer-other-windowSelect a buffer in the other window.
(none)Tools Compare (Ediff) This Window and Next Windowcompare-windowsCompare this window with the next window and show the first difference.
This post is licensed under CC BY 4.0 by the author.