tcsh lets you display and change your key bindings using the bindkey command. The various forms of bindkey are summarized in Table 7-9, and discussed below.
Table 7-9. Forms of the bindkey Command
Select emacs bindings
Select vi bindings
Restore default bindings
Display bindkey usage message
List editing commands and their meanings
List all key bindings
List binding for
Remove binding for
The forms of bindkey that take a
key argument also allow the following flags:
key to be
right, to indicate an arrow key.
key to be
X, to indicate
Allows you to specify the alternate key map (the map used for vi command mode).
May be used immediately preceding
key to tell bindkey to stop processing arguments as flags. This flag is useful when
key itself begins with a dash.
–k and -b cannot both be used in the same command.
To select a set of bindings en masse, use the -e or -v option:
bindkey -eSelect emacs bindings %
bindkey -vSelect vi bindings
Selecting either set rebinds every key to the default for that set, undoing any prior bindings you may have established. To bind any individual keys specially (as discussed under Changing Key Bindings ...