For users who have built years of muscle memory using emacs-y shortcuts in bash, like ctrl-a, ctrl-e, ctrl-k, ctrl-u, ctrl-w, alt-f, alt-b ... and so on, you can have best of the both worlds by using the shortcut ctrl-x ctrl-e which will edit current bash readline in $EDITOR.
For users who have built years of muscle memory using emacs-y shortcuts in bash, like
ctrl-a
,ctrl-e
,ctrl-k
,ctrl-u
,ctrl-w
,alt-f
,alt-b
... and so on, you can have best of the both worlds by using the shortcutctrl-x ctrl-e
which will edit current bash readline in$EDITOR
.You can see a demo of it in this blog post: dev.to/chhajedji/bash-edit-command...