irb with readline on mac using rvm – vi keystrokes

One last whack at this problem. I just got email from a reader of this blog. (Well, technically, a reader of Google, which reads everything, so I shouldn’t feel too impressed with myself.) Anyway, he found my blog post and emailed to tell me the problem with my .inputrc, which was that I needed these two lines:

set editing-mode vi
set keymap vi

I already had the former, but it’s probably been 5 years since I learned how to write a .inputrc file, and I must have missed learning then about the latter. So I added it, and it works like a champ!

irb with readline

I might have posted too soon yesterday. My irb incorporates readline now, but it appears to honor only emacs keybindings. Bummer, huh? I used to be an emacs user, so I can get by for now, but I’d really like to figure out how to get vi keybindings.