Skip to main content

Key Binding Reference for ec_console

Last updated March 2020

Key Binding Reference for ec_console

Editor Commands

ec_console uses the libedit library to provide command line editing facilities. By default, libedit starts in Emacs mode, which provides built-in commands that you can combine into macros to automate your work. You can change the default setting by configuring your .editrc file.

Default Emacs Key BindingEditor CommandDescription
Ctrl+@em-set-markSet the mark at cursor.
Ctrl+Aed-move-to-begMove cursor to the beginning of line.
Ctrl+Bed-prev-charMove to the left one character.
Ctrl+Ced-tty-sigintTty interrupt character.
Ctrl+Dem-delete-or-listDelete character under cursor or list completions if at end of line.
Ctrl+Eed-move-to-endMove cursor to the end of line.
Ctrl+Fed-next-charMove to the right one character.
Ctrl+Hed-delete-prev-charDelete the character to the left of the cursor.
Ctrl+J, Ctrl+Med-newlineExecute command.
Ctrl+K, Ctrl+Ued-kill-lineCut to the end of line.
Ctrl+Led-clear-screenClear screen leaving current line at the top.
Ctrl+Ned-next-historyMove to the next history line.
Ctrl+Oed-tty-flush-outputTty flush output characters.
Ctrl+Ped-prev-historyMove to the previous history line.
Ctrl+Qed-tty-start-outputTty allow output characters.
Ctrl+Red-redisplayRedisplay everything.
Ctrl+Sed-tty-stop-outputTty disallow output characters.
Ctrl+Ted-transpose-charsExchange the character to the left of the cursor with the one under it.
Ctrl+Ved-quoted-insertAdd the next character typed verbatim.
Ctrl+Wem-kill-regionCut area between mark and cursor and save in cut buffer.
Ctrl+Yem-yankPaste cut buffer at cursor position.
Ctrl+Zed-tty-sigtstpTty suspend character.
Ctrl+[em-meta-nextAdd 8th bit to next character typed.
Ctrl+\ed-tty-sigquitTty quit character.
Ctrl+]ed-tty-dsuspTty delayed suspend character.
Esc Backspaceed-delete-prev-wordDelete from beginning of current word to cursor.
Esc Ctrl+_em-copy-prev-wordCopy current word to cursor.
Esc Bed-prev-wordMove to the beginning of the current word.
Esc Cem-capital-caseCapitalize the characters from cursor to end of current word.
Esc Dem-delete-next-wordCut from cursor to end of current word.
Esc Fem-next-wordMove next to end of current word.
Esc Lem-lower-caseLowercase the characters from cursor to end of current word.
Esc Ned-search-next-historySearch next in history for a line matching the current.
Esc Ped-search-prev-historySearch previous in history for a line matching the current.
Esc Uem-upper-caseUppercase the characters from cursor to end of current word.
Esc Wem-copy-regionCopy area between mark and cursor to cut buffer.
ed-argument-digitDigit that starts argument.
ed-delete-next-charDelete character under cursor.
ed-digitAdds to argument or enters a digit.
ed-end-of-fileIndicate end of file.
ed-insertAdd character to the line.
ed-next-lineMove down one line.
ed-prev-lineMove up one line.
ed-sequence-lead-inFirst character in a bound sequence.
ed-start-overErase current line and start from scratch.
ed-unassignedIndicates unbound character.
em-exchange-markExchange the cursor and mark.
em-gosmacs-trasposeExchange the two characters before the cursor.
em-inc-search-nextEmacs incremental next search.
em-inc-search-prevEmacs incremental reverse search.
em-kill-lineCut the entire line and save in cut buffer.
em-toggle-overwriteSwitch from insert to overwrite mode or vice versa.
em-universal-argumentUniversal argument (argument times 4).
vi-addVi enter insert mode after the cursor.
vi-add-at-eolVi enter insert mode at end of line.
vi-change-caseVi change case of character under the cursor and advance one character.
vi-change-metaVi change prefix command.
vi-change-to-eolVi change to end of line.
vi-command-modeVi enter command mode (use alternative key bindings).
vi-delete-metaVi delete prefix command.
vi-delete-prev-charVi move to previous character (backspace).
vi-end-wordVi move to the end of the current space delimited word.
vi-insertVi enter insert mode.
vi-insert-at-bolVi enter insert mode at the beginning of line.
vi-kill-line-prevVi cut from beginning of line to cursor.
vi-list-or-eofVi list choices for completion or indicate end of file if empty line.
vi-next-charVi move to the character specified next.
vi-next-space-wordVi move to the next space delimited word.
vi-next-wordVi move to the next word.
vi-paste-nextVi paste previous deletion to the right of the cursor.
vi-paste-prevVi paste previous deletion to the left of the cursor.
vi-prev-charVi move to the character specified previous.
vi-prev-space-wordVi move to the previous space delimited word.
vi-prev-wordVi move to the previous word.
vi-repeat-next-charVi repeat current character search in the same search direction.
vi-repeat-prev-charVi repeat current character search in the opposite search direction.
vi-repeat-search-nextVi repeat current search in the same search direction.
vi-repeat-search-prevVi repeat current search in the opposite search direction.
vi-replace-charVi replace character under the cursor with the next character typed.
vi-replace-modeVi enter replace mode.
vi-search-nextVi search history next.
vi-search-prevVi search history previous.
vi-substitute-charVi replace character under the cursor and enter insert mode.
vi-substitute-lineVi substitute entire line.
vi-to-end-wordVi move to the end of the current word.
vi-to-next-charVi move up to the character specified next.
vi-to-prev-charVi move up to the character specified previous.
vi-undoVi undo last change.
vi-zeroVi move to the beginning of line.
Was this page helpful?