integrating irb/ruby into vim

D

dave davidson

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
 
P

ppi

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
 
N

Nikolai Weibull

dave said:
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=E2=80=99t have a terminal emulator built in...by choice (s=
ee
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

--=20
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);}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top