DEV Community

Discussion on: How To Use Vim Mode On The Command Line In Bash

Collapse
 
pbnj profile image
Peter Benjamin (they/them)

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.

You can see a demo of it in this blog post: dev.to/chhajedji/bash-edit-command...