Re: ksh key bindings in vi-mode (arrow keys)

2018-01-30 Thread Andreas Kusalananda Kähäri
On Mon, Jan 29, 2018 at 02:22:58PM -0600, Kris Katterjohn wrote: > On Mon, Jan 29, 2018 at 07:52:06PM +0100, Andreas Kusalananda Kähäri wrote: > > It looks as if the "bind" builtin lives, along with the bindable > > functions, in emacs.c and that the command line editing in Vi-mode never > > ever c

Re: ksh key bindings in vi-mode (arrow keys)

2018-01-29 Thread Kris Katterjohn
On Mon, Jan 29, 2018 at 07:52:06PM +0100, Andreas Kusalananda Kähäri wrote: > It looks as if the "bind" builtin lives, along with the bindable > functions, in emacs.c and that the command line editing in Vi-mode never > ever calls these. > > I'll conclude (for the time being, until someone says ot

Re: ksh key bindings in vi-mode (arrow keys)

2018-01-29 Thread Andreas Kusalananda Kähäri
I'll answer my own question... It looks as if the "bind" builtin lives, along with the bindable functions, in emacs.c and that the command line editing in Vi-mode never ever calls these. I'll conclude (for the time being, until someone says otherwise) that the "bind" builtin therefore is a no-op

ksh key bindings in vi-mode (arrow keys)

2018-01-29 Thread Andreas Kusalananda Kähäri
Hi, I'm wondering whether "bind" works at all in ksh, in Vi-mode. I'm currently using the default (unchanged) key bindings and my up-arrow key sends "^[[A". The bind command tells me this is bound to "up-history", but it places me at the end of the command line in insert mode (just as would be e