Options Dump When Using vim-ruby On Ruby

Tom E Purl tep2 at ntrs.com
Tue Jan 6 11:03:16 EST 2009


I'm receiving a lot of strange errors when I try to use vim-ruby on 
Windows.  Any help that anyone can give me would be greatly appreciated.
Every time I start up vim or gvim, I get the following error:

Error detected while processing E:\apps\vim\_vimrc:
line 243:
E492: Not an editor command: omnifunc=rubycomplete#Complete
E486: Pattern not found: rubycomplete_buffer_loading = 1
E486: Pattern not found: rubycomplete_classes_in_global = 1
When I actually try to open a Ruby file, I get a dump of all of my 
configuration options.  This dump is 20 pages long.
Here's how I installed vim-ruby:

E:\apps\ruby\bin>ruby -S gem install vim-ruby
Successfully installed vim-ruby-2007.05.07
1 gem installed


E:\apps\ruby\bin>ruby -S vim-ruby-install.rb

Possible Vim installation directories:
        1) F:/vimfiles
        2) E:/apps/vim/vimfiles

Please select one (or anything else to specify another directory): 2
autoload/rubycomplete.vim -> 
E:/apps/vim/vimfiles/autoload/rubycomplete.vim
compiler/eruby.vim        -> E:/apps/vim/vimfiles/compiler/eruby.vim
compiler/ruby.vim         -> E:/apps/vim/vimfiles/compiler/ruby.vim
compiler/rubyunit.vim     -> E:/apps/vim/vimfiles/compiler/rubyunit.vim
ftdetect/ruby.vim         -> E:/apps/vim/vimfiles/ftdetect/ruby.vim
ftplugin/eruby.vim        -> E:/apps/vim/vimfiles/ftplugin/eruby.vim
ftplugin/ruby.vim         -> E:/apps/vim/vimfiles/ftplugin/ruby.vim
indent/eruby.vim          -> E:/apps/vim/vimfiles/indent/eruby.vim
indent/ruby.vim           -> E:/apps/vim/vimfiles/indent/ruby.vim
syntax/eruby.vim          -> E:/apps/vim/vimfiles/syntax/eruby.vim
syntax/ruby.vim           -> E:/apps/vim/vimfiles/syntax/ruby.vim

Here's the pertinent lines in my _vimrc file:

" Ruby goodies
autocmd FileType ruby,eruby set
omnifunc=rubycomplete#Complete

autocmd FileType ruby,eruby let
g:rubycomplete_buffer_loading = 1

autocmd FileType ruby,eruby let
g:rubycomplete_classes_in_global = 1

map <leader>mr <ESC>:rubyf %<CR>

...and here's my Vim version and compile flags:

:version
VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Dec  9 2008 07:09:33)
MS-Windows 32-bit console version
Included patches: 1-68
Compiled by digitectNO at SPAMdancingpaper.com
Big version without GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset 
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist 
+cmdline_info
+comments +cryptv +cscope +cursorshape +dialog_con +diff +digraphs -dnd 
-ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
+find_in_path +float +folding -footer +gettext/dyn -hangul_input 
+iconv/dyn +insert_expand +jumplist +keymap +langmap +libcall +linebreak
+lispindent +listcmds +localmap +menu +mksession +modify_fname +mouse 
-mouseshape +multi_byte_ime/dyn +multi_lang +mzscheme/dyn -netbeans_intg
-osfiletype +path_extra +perl/dyn -postscript +printer -profile 
+python/dyn +quickfix +reltime +rightleft +ruby/dyn +scrollbind +signs 
+smartindent
-sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static 
-tag_any_white +tcl/dyn -tgetent -termresponse +textobjects +title 
-toolbar
+user_commands +vertsplit +virtualedit +visual +visualextra +viminfo 
+vreplace +wildignore +wildmenu +windows +writebackup -xfontset -xim
-xterm_save -xpm_w32
   system vimrc file: "$VIM\vimrc"
     user vimrc file: "$HOME\_vimrc"
 2nd user vimrc file: "$VIM\_vimrc"
      user exrc file: "$HOME\_exrc"
  2nd user exrc file: "$VIM\_exrc"
Compilation: gcc -O3 -fomit-frame-pointer -freg-struct-return 
-fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400 
-D_WIN32_WINNT=0x0400 -DFEAT_PERL -DDYNAMIC_PERL 
-DDYNAMIC_PERL_DLL="perl58.dll" -DFEAT_PYTHON -DDYNAMIC_PYTHON 
-DDYNAMIC_PYTHON_DLL="python25.dll" -DFEAT_RUBY -DDYNAMIC_RUBY 
-DDYNAMIC_RUBY_DLL="msvcrt-ruby18.dll" -DDYNAMIC_RUBY_VER=18 
-DFEAT_MZSCHEME -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL="libmzsch370.dll" 
-DDYNAMIC_MZGC_DLL="libmzgc370.dll" -DFEAT_TCL -DDYNAMIC_TCL 
-DDYNAMIC_TCL_DLL="tcl84.dll" -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV 
-DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE 
-DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_OLE 
-march=i386 -Iproto -I/cygdrive/c/PERL/lib/CORE 
-I/cygdrive/c/PYTHON25/include 
-I/cygdrive/c/RUBY/lib/ruby/1.8/i386-mswin32 
-I/cygdrive/c/PROGRA~1/MzScheme/include -I/cygdrive/c/Tcl/include -s 
-mno-cygwin
Linking: gcc -s -o gvim.exe  -luuid -lole32 
/cygdrive/c/Tcl/lib/tclstub84.lib -lwsock32 -mwindows -lcomctl32 -lversion 
-loleaut32 -lstdc++

Here's also a couple of other things to consider:

* Ruby is installed on a thumb drive,and its path is E:\apps\ruby
* I also have Jruby installed on this machine, and Jruby appears in my 
$PATH before ruby.  I tried putting ruby before jruby in my path, but that 
didn't make a difference.

The good news is that the big feature that I can use omnifunc with Ruby. 
The bad news is that I have to page through 20 pages of configuration 
information every time I open a ruby file.

Has anyone ever seen an error like this before?

Thanks in advance!

Tom Purl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/vim-ruby-devel/attachments/20090106/cacd79e0/attachment-0001.html>


More information about the vim-ruby-devel mailing list