Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (18 sloc) 842 Bytes

Interactive editor

cf. my (slightly outdated) blog post: Integrating vim and irb and vimcasts #20: Running Vim within IRB.


$ gem install interactive_editor

Put the following in your .irbrc:

require 'rubygems'
require 'interactive_editor'

Then, from within irb:

$ irb
> vi
> vi 'filename.rb'
> [emacs|vim|nano|mate] ...

To try it out without installing the gem:

$ git clone git://
$ cd interactive_editor
$ rake console


Giles Bowkett, Greg Brown, and several audience members from Giles' Ruby East presentation: Use vi or any text editor from within IRB.

Jump to Line
Something went wrong with that request. Please try again.