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

后端 未结 4 1995
孤独总比滥情好
孤独总比滥情好 2020-12-15 06:44

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

4条回答
  •  庸人自扰
    2020-12-15 07:23

    As mentioned before, you can add bind -v in your ~/.editrc.

    The problem with this, as you may or may not have noticed is that this removes your ability to use tab completion. If you want to keep tab completion you can add: bind \\t rl_complete to your ~/.editrc.

提交回复
热议问题