In the .inputrc add set editing-mode vi
(for bash and other stuff using gnu readline)
... or in the .bashrc add set -o vi
(if you want to use it in bash only)
Source (with lots of good nuggets): http://blog.sanctum.geek.nz/vi-mode-in-bash/
In the .inputrc add set editing-mode vi
(for bash and other stuff using gnu readline)
... or in the .bashrc add set -o vi
(if you want to use it in bash only)
Source (with lots of good nuggets): http://blog.sanctum.geek.nz/vi-mode-in-bash/
or in zsh: https://dougblack.io/words/zsh-vi-mode.html