4 ms·
I'm a heavy vim user, but I still prefer the emacs-style key bindings for bash. If I want to do vim-style editing on the command line, I sometimes use Ctrl-X C
by _kst_ 6y ago
I'm a heavy vim user, but I still prefer the emacs-style key bindings for bash. If I want to do vim-style editing on the command line, I sometimes use Ctrl-X Ctrl-E to edit the line in my default editor (which is vim).
YMMV, of course.
- RMPR 6y agoSame here, I'm more productive using directly the GNU readlines shortcuts, but it's maybe a matter of habit
- jonS90 6y agoI do the same. This might be overboard to some, but I went a step further and installed a vim plugin that brought many of the emacs-style key bindings into vim.
- BatmanAoD 6y ago`.inputrc` is your friend. I have `v` (in normal mode) configured to open the line in an editor, because muscle memory sometimes makes me try to enter visual mode when editing a command.
- ketanmaheshwari 6y agofc is an interesting related bash-builtin command. It will open $EDITOR and put the last command in it to edit.