> Sam Xie:

> read a mail, push the <End> key, an error message says, 
>     "keys not bound.  Press '?' for help."

this happened to me when switching over from command- line to x11 on a new
computer.  try ^V <End> in the shell command- line, it tells you what key-
sequence gets emmitted.  control-V is for "verbose", it can also be used in
vi to input control keys, escapes etc. into macro- definitions, where they
must not be expanded until actual use.

example from my mutt/.xkeys:

the following line binds <F1> to display documentation:

macro pager \e[11~ "<shell-escape>less /usr/local/share/mutt/manual.txt\n"\
        "documentation"

likewise, if one wants to update .muttrc with <F2>:

macro pager \e[12~ "<shell-escape>vi ~/.muttrc\n" "edit configuration"

i got the keysequence to use from the bash- commandline:  "^V ^[[11~" was
the answer to ^V<F1>, where ^[ is the control- code for escape.  the proper
command might look something like:

bind pager \e[11~ end-line

but please consult documentation first, or simply use "?" to find out about
the end-line function.

clemens

Reply via email to