Hacker News new | ask | show | jobs
by petepete 5149 days ago
In IRB I use flyrb[1], which gives me methods called vi, emacs and mate, that give me this functionality.

Incidentally, because I want syntax-highlighting for ruby, I have this in my ~/.irbrc

  def vim
     edit_interactively("vim -c 'set ft=ruby'")
  end
[1] - https://github.com/jtrupiano/flyrb
1 comments

Pry has this functionality built-in but souped-up on a diet of crack: https://github.com/pry/pry/wiki/Editor-integration

;)

Ok. I've switched, was surprisingly easy to integrate with Rails too. Excellent stuff - thanks!