I \"set editing-mode vi\" in my .inputrc on my Mac OS system, which allows vi editing in IRB. When I\'m using a RVM Ruby, the IRB sessions don\'t p
set editing-mode vi
.inputrc
These days, I'm using rbenv-installed Ruby 2.5 on MacOS Mojave and the way to get vi key bindings in irb is to add set editing-mode vi to ~/.inputrc.
~/.inputrc
It appears that adding bind -v to ~/.editrc isn't required and doesn't help.
bind -v
~/.editrc