Ruby in vim throws an error

B

Brandon Olivares

Hi,

I wasn't sure where else to post this. I just installed the Ruby
configuration files for vim, from http://vim-ruby.rubyforge.org/.

When I enable indentation like:

filetype plugin indent on

When I open a .rb file, it gives an error about not being able to open
some file in /tmp. It references line 81 of ftplugin/ruby.vim, which is:

let s:rubypath = system("ruby -e '" . s:code . "'")

A few lines earlier, s:code is assigned as:

let s:code = "print ($: + begin; require %q{rubygems};
Gem.all_load_paths.sort.uniq; rescue LoadError; []; end).join(%q{,})"

I'm rather new to vim, so don't know enough about this to know more
about what's going on.

I'm on vim 7.1, ruby 1.8.7 if it's relevant, and running it on Cygwin
1.5.25.

Thanks,
Brandon
 

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