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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you got
set -o viset, 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” andset -o viand have Vi-like editing in IRB.EDIT:
Try creating
~/.editrc, putbind -vin it. Snow Leopard has support for editline built in, so that might be what IRB is using.Try
man 5 editrcfor more info.