From tep2 at ntrs.com Tue Jan 6 11:03:16 2009 From: tep2 at ntrs.com (Tom E Purl) Date: Tue, 6 Jan 2009 10:03:16 -0600 Subject: Options Dump When Using vim-ruby On Ruby Message-ID: 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 mr :rubyf % ...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: From dougkearns at gmail.com Tue Jan 6 19:49:49 2009 From: dougkearns at gmail.com (Doug Kearns) Date: Wed, 7 Jan 2009 11:49:49 +1100 Subject: Options Dump When Using vim-ruby On Ruby In-Reply-To: References: Message-ID: <644fc65e0901061649j5c712facl962e547ae875730@mail.gmail.com> On 1/7/09, Tom E Purl wrote: > > > 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 > Here's the pertinent lines in my _vimrc file: > > " Ruby goodies > autocmd FileType ruby,eruby set > omnifunc=rubycomplete#Complete set omnifunc=rubycomplete#Complete > autocmd FileType ruby,eruby let > g:rubycomplete_buffer_loading = 1 let g:rubycomplete_buffer_loading = 1 > autocmd FileType ruby,eruby let > g:rubycomplete_classes_in_global = 1 let g:rubycomplete_classes_in_global = 1 Regards, Doug From dougkearns at gmail.com Tue Jan 6 19:52:09 2009 From: dougkearns at gmail.com (Doug Kearns) Date: Wed, 7 Jan 2009 11:52:09 +1100 Subject: Options Dump When Using vim-ruby On Ruby In-Reply-To: <644fc65e0901061649j5c712facl962e547ae875730@mail.gmail.com> References: <644fc65e0901061649j5c712facl962e547ae875730@mail.gmail.com> Message-ID: <644fc65e0901061652l370ce678wf4371eba056ce953@mail.gmail.com> Actually you don't even need the 'omnifunc' line since we set it in the filetype plugin. Regards, Doug From orengolan at gmail.com Wed Jan 7 21:44:19 2009 From: orengolan at gmail.com (oreng) Date: Wed, 7 Jan 2009 18:44:19 -0800 (PST) Subject: fuzzyfinder.vim and rubygems 1.3.1 are not compatible Message-ID: <21284587.post@talk.nabble.com> I get this error when running vim with fuzzyfinder.vim and fuzzyfinder_textmate.vim: Error detected while processing function InstantiateTextMateMode: line 17: LoadError: /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- fuzzy_file_finder (with rubygems 1.3.0 everything works fine) any idea how to solve this? Thanks! -- View this message in context: http://www.nabble.com/fuzzyfinder.vim-and-rubygems-1.3.1-are-not-compatible-tp21284587p21284587.html Sent from the Vim - Ruby - Dev mailing list archive at Nabble.com. From tep2 at ntrs.com Thu Jan 8 14:32:27 2009 From: tep2 at ntrs.com (Tom E Purl) Date: Thu, 8 Jan 2009 13:32:27 -0600 Subject: Options Dump When Using vim-ruby On Ruby In-Reply-To: <644fc65e0901061652l370ce678wf4371eba056ce953@mail.gmail.com> Message-ID: Thanks a lot! Your help made it obvious that I put a carriage return in my "autocmd" lines. Tom Purl -------------- next part -------------- An HTML attachment was scrubbed... URL: From cezary.baginski at gmail.com Mon Mar 16 19:51:25 2009 From: cezary.baginski at gmail.com (=?UTF-8?B?Q2V6YXJ5IEJhZ2nFhHNraQ==?=) Date: Tue, 17 Mar 2009 00:51:25 +0100 Subject: Indent problems with symbols containing keywords - solved? Message-ID: <49BEE5FD.60009@gmail.com> Hi, The following gives the wrong indent (vim 7.1.314, Ubuntu): ---------(after indent its the same)------- class AAA def aaa a = [ :title, :from, :until, ] end end ----------------- It seems the 'until' is matched, even when it's a symbol. I dug through the 'syntax/ruby.vim' I already had, since the rubyforge git access is broken (?). The following is the best I could think of: add the \@")' with: \\<\\(while\\|[:]\@")' I did it for just the until keyword and it seems to work fine. Could the problem be caused by Vim treating the ':' char as part of a keyword? Thanks in advance. From vim-ruby-devel at tpope.info Mon Mar 23 09:34:50 2009 From: vim-ruby-devel at tpope.info (Tim Pope) Date: Mon, 23 Mar 2009 09:34:50 -0400 Subject: Indent problems with symbols containing keywords - solved? In-Reply-To: <49BEE5FD.60009@gmail.com> References: <49BEE5FD.60009@gmail.com> Message-ID: <20090323133450.GO10699@maeby.tpope.net> On Tue, Mar 17, 2009 at 12:51:25AM +0100, Cezary Bagi?ski wrote: > > Hi, > > The following gives the wrong indent (vim 7.1.314, Ubuntu): > > ---------(after indent its the same)------- > class AAA > def aaa > a = [ :title, > :from, > :until, > ] > end > end > ----------------- > > It seems the 'until' is matched, even when it's a symbol. I dug through > the 'syntax/ruby.vim' I already had, since the rubyforge git access is > broken (?). > > The following is the best I could think of: > > add the \@ keyword matchers, like: > > \\<\\(while\\|until\\|for\\)\\>")' > > with: > > \\<\\(while\\|[:]\@")' > > I did it for just the until keyword and it seems to work fine. This appears to already be in effect in the latest version of Vim-Ruby. Cheers, Tim From cezary.baginski at gmail.com Wed Mar 25 14:17:31 2009 From: cezary.baginski at gmail.com (=?UTF-8?B?Q2V6YXJ5IEJhZ2nFhHNraQ==?=) Date: Wed, 25 Mar 2009 19:17:31 +0100 Subject: Indent problems with symbols containing keywords - solved? In-Reply-To: <20090323133450.GO10699@maeby.tpope.net> References: <49BEE5FD.60009@gmail.com> <20090323133450.GO10699@maeby.tpope.net> Message-ID: <49CA753B.6000408@gmail.com> I tried to git-clone from rubyforge instead of git hub, which was dumb. (http://rubyforge.org/scm/?group_id=16) HEAD works fine, thanks. Sorry for the trouble. Tim Pope wrote: > On Tue, Mar 17, 2009 at 12:51:25AM +0100, Cezary Bagi?ski wrote: >> Hi, >> >> The following gives the wrong indent (vim 7.1.314, Ubuntu): >> >> ---------(after indent its the same)------- >> class AAA >> def aaa >> a = [ :title, >> :from, >> :until, >> ] >> end >> end >> ----------------- >> >> It seems the 'until' is matched, even when it's a symbol. I dug through >> the 'syntax/ruby.vim' I already had, since the rubyforge git access is >> broken (?). >> >> The following is the best I could think of: >> >> add the \@> keyword matchers, like: >> >> \\<\\(while\\|until\\|for\\)\\>")' >> >> with: >> >> \\<\\(while\\|[:]\@")' >> >> I did it for just the until keyword and it seems to work fine. > > This appears to already be in effect in the latest version of Vim-Ruby. > > Cheers, > Tim > _______________________________________________ > vim-ruby-devel mailing list > vim-ruby-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/vim-ruby-devel