5 ms·
Have you tried vi mode in bash? "set -o vi" I think. Then you can use vi(m) commands, modal editing, even press v to drop into a full vim instance for doing mo
by jcul 4y ago
Have you tried vi mode in bash? "set -o vi" I think.
Then you can use vi(m) commands, modal editing, even press v to drop into a full vim instance for doing more advanced editing of a command line.
It's amazing.
- sagarm 4y agoI am a VI user but prefer to use emacs keybindings in bash. If I need to do significant editing, VIM is just a C-x C-e away.
- weaksauce 4y agoThe thing that bugs me about that mode is that you have no indication of what mode you are in and that is jarring just enough times that it was worse than just using the few emacs keybinds that I could remember. (ctrl-a,e,k basically) (n.b.: i didn't try to configure this that hard so unless they fixed this in zsh or some configuration thing and that would be great)
- gkfasdfasdf 4y agoTIL `set -o vi` is a shortcut for setting `set editing-mode vi` in .inputrc for bash only - except it seems like the .inputrc version would apply to anything that uses readline (gdb, etc) https://unix.stackexchange.com/questions/485818/bashs-set-o-vi-vs-readlines-own-options https://unix.stackexchange.com/questions/485818/bashs-set-o-...