Aider keyboard shortcuts

Aider's interactive terminal prompt supports editing, history navigation, interruption, multiline input, and external-editor handoff. Its default Emacs bindings and optional vi command mode are documented separately so the active input mode is always clear.

Windows, macOS, Linux · 39 shortcuts

Prompt control and multiline input

Interrupt generation, add a line without submitting, or move the current prompt into an external editor when the terminal supports the documented key sequence.

ActionWindowsmacOSLinux
Interrupt Aider while preserving the partial responseCtrlCCtrlCCtrlC
Insert a new line without sending the messageMetaEnterorEscEnterMetaEnterorEscEnterMetaEnterorEscEnter
Open the current input in an external editorCtrlXCtrlECtrlXCtrlECtrlXCtrlE

Default Emacs input mode

Navigate and edit the current prompt with the Emacs-style bindings that Aider enables by default through prompt-toolkit.

ActionWindowsmacOSLinux
Move up one line in the current messageUpUpUp
Move down one line in the current messageDownDownDown
Scroll back through previously sent messagesCtrlUpCtrlUpCtrlUp
Scroll forward through previously sent messagesCtrlDownCtrlDownCtrlDown
Move the cursor to the start of the lineCtrlACtrlACtrlA
Move the cursor back one characterCtrlBCtrlBCtrlB
Delete the character under the cursorCtrlDCtrlDCtrlD
Move the cursor to the end of the lineCtrlECtrlECtrlE
Move the cursor forward one characterCtrlFCtrlFCtrlF
Delete from the cursor to the end of the lineCtrlKCtrlKCtrlK
Clear the screenCtrlLCtrlLCtrlL
Move down to the next history entryCtrlNCtrlNCtrlN
Move up to the previous history entryCtrlPCtrlPCtrlP
Reverse-search command historyCtrlRCtrlRCtrlR
Paste text that was previously cutCtrlYCtrlYCtrlY

Optional vi input mode

Use these command-mode controls after starting Aider with --vim. Escape enters command mode, while i, a, A, and I return to insert mode at different positions.

ActionWindowsmacOSLinux
Move up one line in the current messageUpUpUp
Move down one line in the current messageDownDownDown
Scroll back through previously sent messagesCtrlUpCtrlUpCtrlUp
Scroll forward through previously sent messagesCtrlDownCtrlDownCtrlDown
Switch to command modeEscEscEsc
Switch to insert modeiii
Move right one character and switch to insert modeaaa
Move to the line end and switch to insert modeAAA
Move to the line beginning and switch to insert modeIII
Move one character lefthhh
Move down one linejjj
Move up one linekkk
Move one character rightlll
Move forward one wordwww
Move backward one wordbbb
Move to the beginning of the line000
Move to the end of the line$$$
Delete the character under the cursorxxx
Delete the current linedddddd
Undo the last changeuuu
Redo the last undone changeCtrlRCtrlRCtrlR

Make a printable Aider sheet