Integrating irb/ruby into vim

is there a possibility to have an option to run the ruby script currently being
edited in vim from inside the program? or even better, have the ability to pop
open an irb session from the editing environment. i'm running cream/gvim 6.3
on windows.

thanks

is there a possibility to have an option to run the ruby script currently being
edited in vim from inside the program? or even better, have the ability to pop

This works for me:

  :!ruby %

BTW, you can check syntax with:

  :!ruby -c %

open an irb session from the editing environment. i'm running cream/gvim 6.3

  :!irb

on windows.

My suggestions work on FreeBSD and Linux. Don't know about
Windows.

Regards,
Mark Lindsay

···

On Thu, Oct 13, 2005 at 06:01:05AM +0900, dave davidson <datapanix@gmail.com> wrote:

dave davidson wrote:

is there a possibility to have an option to run the ruby script
currently being edited in vim from inside the program? or even
better, have the ability to pop open an irb session from the editing
environment. i'm running cream/gvim 6.3 on windows.

No. Vim doesn’t have a terminal emulator built in...by choice (see
Emacs).

See the other reply for very good alternatives. You can also look into
creating a 'compiler' that simply runs your file in an environment you
like. Read the help on :compiler (:help :compiler) for an introduction,
        nikolai

···

--
Nikolai Weibull: now available free of charge at http://bitwi.se/\!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}