On 2009-08-12, Philip Rhoades wrote:
> On 2009-08-12 05:49, Gary Johnson wrote:
> > On 2009-08-12, Philip Rhoades wrote:

> >> But when I checked, the matchit plugin was not there so I downloaded and
> >> installed it but still no improvement so I read the doc (!) and changed
> >> the last line in .vimrc to:
> >>
> >>    :source ~phil/.vim/plugin/matchit.vim
> >>
> >> but still no joy.  What is really odd is that "g%" ie the reverse
> >> movement works fine!
> >>
> >> I have:
> >>
> >>    vim v7.2.148-1
> >>    matchit.vim v1.13.2, for Vim 6.3+
> >
> > I suppose the problem could be some other plugin interfering with
> > these.  To make sure it wasn't working for me because of some
> > peculiarity of my setup, I started vim like this:
> >
> >      vim -N -u NONE
> >
> > Then within vim, executed these:
> >
> >      :runtime macros/matchit.vim
> 
> 
> This works OK.
> 
> 
> >      :filetype detection on
> 
> 
> This gives:
> 
>       E475: Invalid argument: detection on

I'm sorry--that should have been

    :filetype plugin on

> >      :e foo.rb
> >
> > where foo.rb contains your example code.  The % worked fine.  Try
> > that and see if it works any better for you.  That's pretty much
> > what you already tried with your simple .vimrc except that your
> > experiment also loaded all your plugins as well, whereas starting
> > vim with -u NONE also inhibits the loading of plugins.
> > Alternatively, you could repeat your experiment but start vim as
> >
>  >      vim --noplugin
> 
> 
> Still have the same problem with this:
> 
>       vim --noplugin t.rb
> 
> where t.rb is:
> 
> #!/usr/bin/env ruby
> 
> x = 1
> 
> if (x == 1)
>          puts 'Yesss'
> else
>          puts 'Noooo'
> end

I'm at a loss then.  I've tried it on straight Windows on a
different PC with gvim 7.2.148 from Cream, and on a Red Hat Linux
system with vim 7.2.148 I built myself, and it just works.  I don't
know enough about the internals of either the ruby.vim plugin or
the matchit.vim script to know how to troubleshoot this further.
For what it's worth, if I execute this from vim on Linux when
editing a Ruby file (so that ft=ruby),

    :let b:

I get a bunch of stuff including this:

    b:match_words          
\<\%(if\|unless\|case\|while\|until\|for\|do\|class\|module\|def\|begin\)\>=...@!:\<\%(else\|elsif\|ensure\|when\|rescue\|break\|redo\|next\|retry\)\>:\<end\>,{:},\[:\],(:)
    b:match_ignorecase    #0
    b:match_skip           synIDattr(synID(line('.'),col('.'),0),'name') =~ 
'\<ruby\%(String\|StringDelimiter\|ASCIICode\|Escape\|Interpolation\|NoInterpolation\|Comment\|Documentation\|ConditionalModifier\|RepeatModifier\|OptionalDo\|Function\|BlockArgument\|KeywordAsMethod\|ClassVariable\|InstanceVariable\|GlobalVariable\|Symbol\)\>'

I wonder if there is some feature missing from your vim.  Here's the
output of :version from one of the vims on which it works for me
(the Cygwin one):

    VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Apr 16 2009 00:05:20)
    Included patches: 1-148
    Compiled by Gary john...@kcjs-computer
    Huge 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 +fork() -gettext 
-hangul_input +iconv +insert_expand +jumplist +keymap +langmap 
    +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession 
+modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm 
    +mouse_netterm -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang 
-mzscheme -netbeans_intg -osfiletype +path_extra -perl +postscript 
    +printer +profile -python +quickfix +reltime +rightleft -ruby +scrollbind 
+signs +smartindent -sniff +statusline -sun_workshop +syntax 
    +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse 
+textobjects +title -toolbar +user_commands +vertsplit +virtualedit
     +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows 
+writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save
     
       system vimrc file: "$VIM/vimrc"
         user vimrc file: "$HOME/.vimrc"
          user exrc file: "$HOME/.exrc"
      fall-back for $VIM: "/usr/local/share/vim"
    Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2        
    Linking: gcc   -L/usr/local/lib -o vim.exe       -lm -lncurses  -liconv     
   

Hope that helps, but I'm just shotgunning now.

Regards,
Gary



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to