Simplicity
Simplicity

Reputation: 48916

Ruby support in vim

If I want to work with Ruby in Vim, how can I add Ruby support to it?

Upvotes: 2

Views: 779

Answers (2)

emboss
emboss

Reputation: 39620

First of all, you would need a Vim version that is compiled with Ruby support enabled. You achieve this with:

./configure <the rest of your options> --enable-rubyinterp

on a Linux system, for example.

The next steps would be installing the plugins of your choice, you probably want NERDTree, snipMate, vim-ruby-debugger....

There are a lot of plugins to make your life easier, but there is always the option to run arbitrary shell commands from within Vim, no extra plugin needed:

!ruby /path/to/script.rb

This will execute script.rb and print the shell output directly in Vim itself.

Upvotes: 3

socjopata
socjopata

Reputation: 5095

I would visit https://github.com/ and put "ruby vim" into search box. You should find plenty interesting add-ons for vim this way.

Upvotes: 1

Related Questions