Readline Shortcut

Meta+B means press Esc and n separately.
Users can change that in terminal simulator(i.e. iTerm2) to Alt+B
Notice: Meta+B is equals with Alt+B in windows.

  • Shortcut in normal mode
ShortcutComment
Ctrl+ABeginning of line
Ctrl+B / Backward one character
Meta+BBackward one word
Ctrl+CSend io.EOF
Ctrl+DDelete one character
Meta+DDelete one word
Ctrl+EEnd of line
Ctrl+F / Forward one character
Meta+FForward one word
Ctrl+GCancel
Ctrl+HDelete previous character
Ctrl+I / TabCommand line completion
Ctrl+JLine feed
Ctrl+KCut text to the end of line
Ctrl+LClear screen
Ctrl+MSame as Enter key
Ctrl+N / Next line (in history)
Ctrl+P / Prev line (in history)
Ctrl+RSearch backwards in history
Ctrl+SSearch forwards in history
Ctrl+TTranspose characters
Meta+TTranspose words (TODO)
Ctrl+UCut text to the beginning of line
Ctrl+WCut previous word
BackspaceDelete previous character
Meta+BackspaceCut previous word
EnterLine feed
  • Shortcut in Search Mode (Ctrl+S or Ctrl+r to enter this mode)
ShortcutComment
Ctrl+SSearch forwards in history
Ctrl+RSearch backwards in history
Ctrl+C / Ctrl+GExit Search Mode and revert the history
BackspaceDelete previous character
OtherExit Search Mode
  • Shortcut in Complete Select Mode (double Tab to enter this mode)
ShortcutComment
Ctrl+FMove Forward
Ctrl+BMove Backward
Ctrl+NMove to next line
Ctrl+PMove to previous line
Ctrl+AMove to the first candicate in current line
Ctrl+EMove to the last candicate in current line
Tab / EnterUse the word on cursor to complete
Ctrl+C / Ctrl+GExit Complete Select Mode
OtherExit Complete Select Mode