How do I make vi editing-mode work in IRB when using RVM?

irb, rvm, vi

Solution

Have you got `set -o vi` set, either at the command-line or in one of your startup scripts? That turns it on for the shell. I have both "`set editing-mode vi`" and `set -o vi` and have Vi-like editing in IRB.

EDIT:

Try creating `~/.editrc`, put `bind -v` in it. Snow Leopard has support for editline built in, so that might be what IRB is using.

Try `man 5 editrc` for more info.

Problem

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 process this directive. Does anyone know a solution?

Original source