Close pane: the shortcut in 5 apps
On Mac it is usually Ctrl+W Q (2 of 4 apps); on Windows it is usually Ctrl+W Q (2 of 4 apps); on Linux it is usually Ctrl+W Q (2 of 4 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| EmacsClose this window | CtrlX,0 | CtrlX,0 | CtrlX,0 |
| NeovimClose the window · Normal mode | CtrlW,Q | CtrlW,Q | CtrlW,Q |
| tmuxKill the pane | CtrlB,X | — | CtrlB,X |
| VimClose the window · Normal mode | CtrlW,Q | CtrlW,Q | CtrlW,Q |
| Windows TerminalClose the pane (or the tab) | — | CtrlShiftW | — |
How the apps compare
- Mac: Ctrl+W Q in Neovim and Vim; Ctrl+X 0 in Emacs; Ctrl+B X in tmux.
- Windows: Ctrl+W Q in Neovim and Vim; Ctrl+X 0 in Emacs; Ctrl+Shift+W in Windows Terminal.
- Linux: Ctrl+W Q in Neovim and Vim; Ctrl+X 0 in Emacs; Ctrl+B X in tmux.
Where and when it works
Learn it by pressing it: Emacs shortcuts practice, Neovim shortcuts practice, tmux shortcuts practice, Vim shortcuts practice or Windows Terminal shortcuts practice.