Hacker News new | ask | show | jobs
by tristan957 730 days ago
What's the bind incantation in the bashrc you recommend? Here is what I tried:

    bind -m vi-command 'Control-e: emacs-editing-mode'
    bind -m emacs 'M-C-j: vi-editing-mode'
The second keybind does not seem to work. If I just make it control-j, it works. For some reason the meta is throwing it off.
1 comments

You are looking for

    bind -m emacs-meta '"\C-j": vi-editing-mode'
and possibly adding

    bind -m vi-insert '"\C-e": emacs-editing-mode'
The default keybind is control-meta-j though. My comment was in reference to me not being able to get that to work.