Without options, list all bound keys, and the editor command to which
each is bound.
is supplied, show the bindings for
is supplied, bind
Bind all keys to the standard GNU Emacs-like bindings.
Bind all keys to the standard
List or change key bindings in the
mode alternate (command mode) key map.
is interpreted as a symbolic arrow key name, which may be one of
List all editor commands and a short description of each.
Remove a key's binding.
is taken as a literal string and treated as terminal input when
Bound keys in
are themselves reinterpreted, and this continues for ten levels of
may be one of the commands documented in
Sx EDITOR COMMANDS
below, or another key.
can contain control characters of the form
and the following backslashed escape sequences:
The ASCII character corresponding to the octal number
nullifies the special meaning of the following character,
if it has any, notably
Exercise terminal capabilities given in
the value of that capability is printed, with
indicating that the terminal does or does not have that capability.
returns an empty string for non-existent capabilities, rather than
causing an error.
causes messages to be verbose.
edit [on | off
Enable or disable the
functionality in a program.
history list | size n | unique n
command lists all entries in the history.
command sets the history size to
command controls if history should keep duplicate entries.
is non zero, only keep unique history entries.
is zero, then keep all entries (the default).
List the values of all the terminal capabilities (see
settc cap val
Set the terminal capability
as defined in
No sanity checking is done.
Control which tty modes that
will not allow the user to change.
to act on the
set of tty modes respectively; defaulting to
Without other arguments,
lists the modes in the chosen set which are fixed on
lists all tty modes in the chosen set regardless of the setting.
on or off or removes control of
in the chosen set.
can also be used to set tty characters to particular values using
then the character is set to
The following editor commands are available for use in key bindings:
Vi paste previous deletion to the right of the cursor.
Vi paste previous deletion to the left of the cursor.
Vi move to the previous space delimited word.
Vi move to the previous word.
Vi move to the next space delimited word.
Vi move to the next word.
Vi change case of character under the cursor and advance one character.
Vi change prefix command.
Vi enter insert mode at the beginning of line.
Vi replace character under the cursor with the next character typed.
Vi enter replace mode.
Vi replace character under the cursor and enter insert mode.
Vi substitute entire line.
Vi change to end of line.
Vi enter insert mode.
Vi enter insert mode after the cursor.
Vi enter insert mode at end of line.
Vi delete prefix command.
Vi move to the end of the current space delimited word.
Vi move to the end of the current word.
Vi undo last change.
Vi enter command mode (use alternative key bindings).
Vi move to the beginning of line.
Vi move to previous character (backspace).
Vi list choices for completion or indicate end of file if empty line.
Vi cut from beginning of line to cursor.
Vi search history previous.
Vi search history next.
Vi repeat current search in the same search direction.
Vi repeat current search in the opposite search direction.
Vi move to the character specified next.
Vi move to the character specified previous.
Vi move up to the character specified next.
Vi move up to the character specified previous.
Vi repeat current character search in the same search direction.
Vi repeat current character search in the opposite search direction.
Delete character under cursor or list completions if at end of line.
Cut from cursor to end of current word.
Paste cut buffer at cursor position.
Cut the entire line and save in cut buffer.
Cut area between mark and cursor and save in cut buffer.
Copy area between mark and cursor to cut buffer.
Exchange the two characters before the cursor.
Move next to end of current word.
Uppercase the characters from cursor to end of current word.
Capitalize the characters from cursor to end of current word.
Lowercase the characters from cursor to end of current word.
Set the mark at cursor.
Exchange the cursor and mark.
Universal argument (argument times 4).
Add 8th bit to next character typed.
Switch from insert to overwrite mode or vice versa.
Copy current word to cursor.
Emacs incremental next search.
Emacs incremental reverse search.
Indicate end of file.
Add character to the line.
Delete from beginning of current word to cursor.
Delete character under cursor.
Cut to the end of line.
Move cursor to the end of line.
Move cursor to the beginning of line.
Exchange the character to the left of the cursor with the one under it.
Move to the right one character.
Move to the beginning of the current word.
Move to the left one character.
Add the next character typed verbatim.
Adds to argument or enters a digit.
Digit that starts argument.
Indicates unbound character.
Tty interrupt character.
Tty delayed suspend character.
Tty flush output characters.
Tty quit character.
Tty suspend character.
Tty disallow output characters.
Tty allow output characters.
Delete the character to the left of the cursor.
Clear screen leaving current line at the top.
Erase current line and start from scratch.
First character in a bound sequence.
Move to the previous history line.
Move to the next history line.
Search previous in history for a line matching the current.
Search next in history for a line matching the current.