Skip to content

↑↓ moveEnter openEsc close

Go to previous line: the shortcut in 4 apps

4 apps · Mac, Windows and Linux

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

AppMacWindowsLinux
EmacsPrevious lineCtrlPCtrlPCtrlP
JupyterLabSelect the cell above · Command mode↑orK↑orK↑orK
macOSMove up one lineCtrlP——
VimMove up · Normal modeKKK

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+P in Emacs and macOS; ↑ in JupyterLab; K in Vim.
  • Windows: Ctrl+P in Emacs; ↑ in JupyterLab; K in Vim.
  • Linux: Ctrl+P in Emacs; ↑ in JupyterLab; K in Vim.

Where and when it works

Learn it by pressing it: Emacs shortcuts practice, JupyterLab shortcuts practice, macOS shortcuts practice or Vim shortcuts practice.