Vim does not currently support integration with Ruby 1.9,
but it's on the list (see :help todo).
Masaki Suketa supplied a patch to the vim_dev mailing list in
July 2009, under the subject line "Patch for Vim with Ruby 1.9".
Using this patch, I'm able to build Vim with support for Ruby
1.9 (on Arch Linux), as well as Ruby 1.8 (on Fedora 12 Linux).
The Ruby-based plugins I use (LustyExplorer and
LustyJuggler) work fine Ruby 1.8 and Masaki's patch. With
Ruby 1.9, LustyExplorer is throwing an exception, but I think
it's a problem with the plugin and the changing Ruby language
definition, not a problem with integrating Ruby into Vim.
Until Ruby 1.9 is supported in Vim, it will be more difficult
for plugin authors to try Ruby 1.9 and fix any problems. Arch
Linux uses Ruby-1.9, so the Arch packager for Vim has disabled
Ruby integration pending a Vim patch that works with Ruby
1.9. This leave Arch users somewhat out in the cold for Ruby
Is Masaki's patch ready to be incorporated, or is more testing
required? Masaki had done testing with multiple versions of
Ruby, including 1.8.7, 1.9.1, and 1.9.2dev. It's working for me
with Ruby 1.8 on Fedora, so it looks harmless for Ruby 1.8
users, while allowing Ruby 1.9 users a chance to more widely
exercise Ruby-based plugins and shake out compatibility bugs.
: The exception looks like this:
type mismatch: Fixnum given
(eval):118:in `block in buildScoreArray'
(eval):326:in `block in matching_entries'
(eval):560:in `block in key_pressed'