Regarding mapping function keys in vi readline, I have read these two stackexchanges:
As an aside, what is the proper moniker for bash vi (vi shell mode) ?
I have a MacBookPro with a touchbar. The function keys are always on, but unlike physical keys, the virtual touch bar function keys are tempermental and frequently inject junk into the commands i'm typing (this is particularly a problem when attempting to type an underscore...i get a lot of F9, F10, and maybe some F11). I don't use these keys...so i wish i could disable them. But, let's say that i could make them simply go to the end of the line.
This is one of my many attempts to map to go to the end of the line (when in insert mode):
set editing-mode vi
$if mode=vi
set keymap vi-insert
"<F9>": end-of-line
$endif
the result of typing "asdf" at a prompt is as follows:
TT->~$ [] (arg: 20)
I have placed "[]", above, where the cursor remains after pressing <F9>, in case that is any help.
The variations i have tried are as follows:
"<F9>": end-of-line<F9>": end-of-line20: end-of-line"20": end-of-line"arg: 20": end-of-line(arg: 20): end-of-line"(arg: 20)": end-of-line
I have also tried googling, but i'm afraid not knowing the actual name ofUpdate: the "vi bash shell mode editor single line"following .inputrc is preventing me from finding the answer.now working to "ignore" :
set keymap vi-insert
"\e[20~":redraw-current-line