Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 15243069e2

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore initial commit May 16, 2010
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 interactive_editor.gemspec
README.md

Interactive editor

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

Usage

$ 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://github.com/jberkel/interactive_editor.git
$ cd interactive_editor
$ rake console

Credits

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

Something went wrong with that request. Please try again.