Table of Contents

Completion

accept-and-menu-complete
In a menu completion, insert the current completion into the buffer, and advance to the next possible completion.

complete-word (unbound) (\)
Attempt completion on the current word.

delete-char-or-list (^D)
Delete the character under the cursor. If the cursor is at the end of the line, list possible completions for the current word.

execute-named-cmd (ESC x)
Read the name of a editor command and execute it. A restricted set of editing functions is available in the mini-buffer. An interrupt signal, as defined by the stty setting, will abort the function. The allowed functions are: backward-delete-char, vibackward-delete-char, kill-region (kills the last word), backward-kill-word, vi-backward-kill-word, kill-whole-line, vi-kill-line, backward-kill-line, list-choices, delete-char-or-list and accept-line. The space and tab characters, if not bound to one of these functions, will complete the name and then list the possibilities if the autolist option is set.

execute-last-named-cmd (ESC-z)
Redo the last function executed with execute-named-cmd.

expand-cmd-path
Expand the current command to its full pathname.

expand-or-complete (TAB) (TAB ^X)
Attempt shell expansion on the current word. If that fails, attempt completion.

expand-or-complete-prefix (unbound)
Attempt shell expansion on the current word upto cursor.

expand-history (ESC-space ESC-!)
Perform history expansion on the edit buffer.

expand-word (^X*)
Attempt shell expansion on the current word.

list-choices (ESC-^D) (^D =)
List possible completions for the current word.

list-expand (^Xg ^XG) (^G)
List the expansion of the current word.

magic-space
Perform history expansion and insert a space into the buffer. This is intended to be bound to space.

menu-complete
Like complete-word, except that menu completion is used. See the MENU_COMPLETE option below.

menu-expand-or-complete
Like expand-or-complete, except that menu completion is used.

reverse-menu-complete
See the MENU_COMPLETE option below.

Miscellaneous

accept-and-hold (ESC-A ESC-a)
Push the contents of the buffer on the buffer stack and execute it.

accept-and-infer-next-history
Execute the contents of the buffer. Then search the history list for a line matching the current one and push the event following onto the buffer stack.

accept-line (^J ^M)
Execute the contents of the buffer.

accept-line-and-down-history (^O)
Execute the current line, and push the next history event on the the buffer stack.

vi-cmd-mode (^X^V) (^[)
Enter command mode; that is, use the alternate keymap. Yes, this is bound by default in emacs mode.

vi-caps-lock-panic (unbound) (H K)
Hang until any lowercase key is pressed. This is for vi users without the mental capacity to keep track of their caps lock key (like the author).

clear-screen (^L ESC-^L)
Clear the screen and redraw the prompt.

exchange-point-and-mark (^X^X)
Exchange the cursor position with the position of the mark.

get-line (ESC-G ESC-g)
Pop the top line off the buffer stack and insert it at the cursor position.

pound-insert (unbound) (#)
If there is no # character at the beginning of the current line, add one. If there is one, remove it. In either case, accept the current line. The INTERACTIVE_COMMENTS option must be set for this to have any usefulness.

push-input
Push the entire current multiline construct onto the buffer stack and return to the top-level (PS1) prompt. If the current parser construct is only a single line, this is exactly like push-line. Next time the editor starts up or is popped with get-line, the construct will be popped off the top of the buffer stack and loaded into the editing buffer.

push-line (^Q ESC-Q ESC-q)
Push the current buffer onto the buffer stack and clear the buffer. Next time the editor starts up, the buffer will be popped off the top of the buffer stack and loaded into the editing buffer.

push-line-or-edit
At the top-level (PS1) prompt, equivalent to push-line. At a secondary (PS2) prompt, move the entire current multiline construct into the editor buffer. The latter is equivalent to push-input followed by get-line.

redisplay (unbound) (^R)

Redisplays the edit buffer.

send-break (^G)
Abort the current editor function, eg. execute-namedcommand, or the editor itself, eg. if you are in vared. Otherwise abort the parsing of the current line.

run-help (ESC-H ESC-h)
Push the buffer onto the buffer stack, and execute the command "run-help cmd", where cmd is the current command. run-help is normally aliased to man.

vi-set-buffer (unbound) (")
Specify a buffer to be used in the following command.

vi-set-mark (unbound) (m)
Set the specified mark at the cursor position.

set-mark-command (^@)
Set the mark at the cursor position.

spell-word (ESC-$ ESC-S ESC-s)
Attempt spelling correction on the current word.

undefined-key
Beep.

undo (^_ ^Xu ^X^U) (u)
Incrementally undo the last text modification.

which-command (ESC-?)
Push the buffer onto the buffer stack, and execute the command "which-command cmd", where cmd is the current command. which-command is normally aliased to whence.


Mark D. Borges