Permalink
Browse files

Merge branch 'master' of github.com:jberkel/interactive_editor

  • Loading branch information...
2 parents 724a818 + dcc9270 commit b10922e98c53ab1cc26fde979fee081d4542d47f @jberkel committed Sep 26, 2010
Showing with 6 additions and 5 deletions.
  1. +4 −4 README.md
  2. +2 −1 lib/interactive_editor.rb
View
@@ -15,10 +15,10 @@ Put the following in your .irbrc:
Then, from within irb:
$ irb
- > vi # (use vi w/ temp file)
- > vi 'filename.rb' # (open filename.rb in vi)
- > ed # (use EDITOR env variable)
- > [emacs|vim|nano|mate] # (other editors)
+ > vi # (use vi w/ temp file)
+ > vi 'filename.rb' # (open filename.rb in vi)
+ > ed # (use EDITOR env variable)
+ > [emacs|vim|mvim|nano|mate] # (other editors)
To try it out without installing the gem:
@@ -68,7 +68,8 @@ module Editors
:vim => nil,
:emacs => nil,
:nano => nil,
- :mate => 'mate -w'
+ :mate => 'mate -w',
+ :mvim => 'mvim -g -f'
}.each do |k,v|
define_method(k) do |*args|
InteractiveEditor.edit(v || k, *args)

0 comments on commit b10922e

Please sign in to comment.