Center cursor in view: the shortcut in 3 apps
On Mac it is usually Ctrl+L (2 of 3 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| EmacsRecenter the screen on the cursor | CtrlL | CtrlL | CtrlL |
| macOSCenter the cursor or selection in the visible area | CtrlL | — | — |
| VimCenter the cursor line on screen · Normal mode | Z,Z | Z,Z | Z,Z |
How the apps compare
- Mac: Ctrl+L in Emacs and macOS; Z Z in Vim.
- Windows: Ctrl+L in Emacs; Z Z in Vim.
- Linux: Ctrl+L in Emacs; Z Z in Vim.
Where and when it works
- Vim (Normal mode).
Learn it by pressing it: Emacs shortcuts practice, macOS shortcuts practice or Vim shortcuts practice.