If you do this:
gem install utility_belt
and then enter regular IRB and do this:
vi
you should then be able to enter arbitrary code in vi, which then executes (after you close the file) in the IRB session you were in.
however, if you do it from jirb, the vi which is launched has this weird inability to perceive the escape key.
utility belt also has similar shortcuts for emacs and TextMate. on my system TextMate behaves as expected, but emacs fails to launch at all.
in #jruby headius noted this is probably related to an issue with readline.
lewis:jruby pldms$ ruby -e 'system("vi /tmp/vi_test")' # all works as expected lewis:jruby pldms$ jruby -e 'system("vi /tmp/vi_test")' Vim: Warning: Output is not to a terminal Vim: Warning: Input is not from a terminal ... acts very oddly ...Presumably the IO hookup is the problem, but this may be out of our hands. Trying a pure java test.