Table of Contents
History
beginning-of-buffer-or-history (ESC-<)
Move to the beginning of the buffer, or if already there, move to the
first event in the history list.
beginning-of-line-hist
Move to the beginning of the line. If already at the beginning of the
buffer, move to the previous history line.
beginning-of-history
Move to the first event in the history list.
down-line-or-history (^N ESC-[B) (+ j)
Move down a line in the buffer, or if already at the bottom line, move
to the next event in the history list.
down-line-or-search
Move down a line in the buffer, or if already at the bottom line,
search forward in the history for a line beginning with the first word
in the buffer.
down-history (unbound) (^N)
Move to the next event in the history list.
history-beginning-search-backward (unbound)
Search backward in the history for a line beginning with the current
line up to the cursor. This leaves the cursor in its original
position.
end-of-buffer-or-history (ESC->)
Move to the end of the buffer, or if already there, move to the last
event in the history list.
end-of-line-hist
Move to the end of the line. If already at the end of the buffer, move
to the next history line.
end-of-history
Move to the last event in the history list.
vi-fetch-history (unbound) (G)
Fetch the history line specified by the numeric argument.
history-incremental-search-backward (^R ^Xr)
Search backward incrementally for a specified string. The string may
begin with `^' to anchor the search to the beginning of the line. A
restricted set of editing functions is available in the
mini-buffer. An interrupt signal, as defined by the stty setting, will
stop the search and go back to the original line. An undefined key
will have the same effect. The supported functions are:
backward-delete-char, quoted-insert, accept-andhold,
accept-and-infer-next-history, accept-line and
accept-line-and-down-history; magic-space just inserts a space. Any
string that is bound to an out-string (via bindkey -s) will behave as
if out-string were typed directly. Typing the binding of
history-incremental-search-backward will get the next
occurrence of the contents of the mini-buffer. Typing the binding of
history-incremental-search-forward inverts the sense of the
search. The direction of the search is indicated in the
mini-buffer. Any multi-character string that is not bound to one of
the above functions will beep and interrupt the search, leaving the
last found line in the buffer. Any single character that is not bound
to one of the above functions, or self-insert or selfinsert-unmeta,
will have the same effect but the function will be executed.
history-incremental-search-forward (^Xs)
Search forward incrementally for a specified string. The string may
begin with `^' to anchor the search to the beginning of the line. The
functions available in the mini-buffer are the same as for
history-incremental-search-backward.
history-search-backward (ESC-P ESC-p) (K)
Search backward in the history for a line beginning with the first
word in the buffer.
vi-history-search-backward (unbound) (/)
Search backward in the history for a specified string. The string may
begin with `^' to anchor the search to the beginning of the line. A
restricted set of editing functions is available in the
mini-buffer. An interrupt signal, as defined by the stty setting, will
stop the search, as will a character bound to vi-cmd-mode. The
functions available in the mini-buffer are: acceptline,
backward-delete-char, vi-backward-delete-char and quoted-insert. Any
string that is bound to an outstring (via bindkey -s) will behave as
if out-string were typed directly. Any other character that is not
bound to self-insert or self-insert-unmeta will beep and be
ignored. If the function is called from vi command mode, the bindings
of vi insert mode will be used.
history-search-forward (ESC-N ESC-n) (J)
Search forward in the history for a line beginning with the first word
in the buffer.
vi-history-search-forward (unbound) (?)
Search forward in the history for a specified string. The string may
begin with `^' to anchor the search to the beginning of the line. The
functions available in the mini-buffer are the same as for
vi-history-search-backward.
infer-next-history (^X^N)
Search in the history list for a line matching the current one and
fetch the event following it.
insert-last-word (ESC-_ ESC-.)
Insert the last word from the previous history event at the cursor position.
vi-repeat-search (unbound) (n)
Repeat the last vi history search.
vi-rev-repeat-search (unbound) (N)
Repeat the last vi history search, but in reverse.
toggle-literal-history (ESC-R ESC-r)
Toggle between literal and lexical history. The default is lexical
history unless the HIST_LIT
option is set.
up-line-or-history (^P ESC-[A) (- k)
Move up a line in the buffer, or if already at the top line, move to
the previous event in the history list.
up-line-or-search
Move up a line in the buffer, or if already at the top line, search
backward in the history for a line beginning with the first word in
the buffer.
up-history (unbound) (^P)
Move to the previous event in the history list.
history-beginning-search-forward (unbound)
Search forward in the history for a line beginning with the current
line up to the cursor. This leaves the cursor in its original
position.
Mark D. Borges