2 ms·
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
by petepete 14y 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 https://github.com/jtrupiano/flyrb
- banister 14y agoPry has this functionality built-in but souped-up on a diet of crack: https://github.com/pry/pry/wiki/Editor-integration https://github.com/pry/pry/wiki/Editor-integration ;)
- petepete 14y agoOk. I've switched, was surprisingly easy to integrate with Rails too. Excellent stuff - thanks!