Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby in vim throws an error

Thread Tools

Ruby in vim throws an error

Brandon Olivares
Posts: n/a

I wasn't sure where else to post this. I just installed the Ruby
configuration files for vim, from

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

Posted via

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
(debian,vim,Qt,ruby) on vim : no completion but everything elseworks fine lolveley Ruby 3 05-29-2009 04:30 PM
New to Vim and Vim-Python Daniel Folkes Python 3 10-25-2007 03:51 PM
Little indenting bug in Vim's ruby.vim (version 2005-10-07) Vincent Foley Ruby 6 04-10-2006 01:46 AM
ANN:a Vim script make Vim suport calltips of python tocer Python 0 08-28-2004 05:32 AM
vim 6.2 + vim-ruby don't work Guoliang Cao Ruby 1 10-16-2003 04:32 PM