Skip to content

↑↓ moveEnter openEsc close

Center cursor in view: the shortcut in 3 apps

3 apps · Mac, Windows and Linux

On Mac it is usually Ctrl+L (2 of 3 apps). The table shows where each app agrees and where it differs.

AppMacWindowsLinux
EmacsRecenter the screen on the cursorCtrlLCtrlLCtrlL
macOSCenter the cursor or selection in the visible areaCtrlL——
VimCenter the cursor line on screen · Normal modeZ,ZZ,ZZ,Z

Small screen: your system's keys only. Open an app's row for every system.

A dash means the app has no default binding, or does not run, on that system. Open a row for notes and the full key details.

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.