4 ms·
This looks really nice, but what I would like even more would be to just jump out into a minimal multi line edit mode between the "def" and "end" of a method.
by jnovek 14y ago
This looks really nice, but what I would like even more would be to just jump out into a minimal multi line edit mode between the "def" and "end" of a method.
- petepete 14y agoIn 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!