On 2008-10-22, Robin Wood <[EMAIL PROTECTED]> wrote: > 2008/10/22 Tony Mechelynck <[EMAIL PROTECTED]>: > > > > On 22/10/08 17:26, Robin Wood wrote: > >> Hi > >> I have matchit 1.13.2 installed on a machine and while I can now do > >> html matches I can no longer do normal bracket matches. It will > >> occasionally jump from an opening bracket to a close but not the other > >> way round. > >> > >> I've tried re-running :helptags ~/.vim/doc again and also tried > >> copying a tags file from a working machine, that didn't help. > >> > >> If I remove all the matchit stuff bracket matching works fine. > >> > >> I'm using version 6.3.82 on RHEL 4. > >> > >> Any suggestions on how to fix it? > >> > >> Robin > > > > > > I have the following in my vimrc: > > > > > > if has('autocmd') > > augroup vimrclocal > > " match (:),[:],{:} in matchit for C, C++, CSS and javascript > > au FileType c,cpp,css,javascript > > \ let b:match_words = &matchpairs > > " you may have other autocommands, unrelated to the above. > > " Place them here. > > augroup END > > endif > > Why should I need this? On all other boxes the matchit script just > works. I'll give this a try but I'd rather fix what matchit is > breaking. > > > > > > > Oh, and BTW version 6.3.82 is hopelessly out-of-date. The current > > I'm on a fully managed server and the managers won't update package > apart from for bug/security fixes so I'm stuck on this old version.
I compile my own vim, but it turns out that one of the machines I use is also running RHEL 4 and that /usr/bin/vim is version 6.3.82. I tried the following: $ /usr/bin/vim -N -u NONE somefile.html :so /usr/share/vim/vim63/macros/matchit.vim :filetype plugin on :filetype detect I put the cursor on the opening < of the <head> tag and hit %. Each press of % moved the cursor back and forth between the < and the > of the <head> tag. Then I moved the cursor to the 'h' in <head>. Hitting % moved the cursor to the / in the </head> tag. Each subsequent press of % moved the cursor back and forth between the first characters of the <head> and </head> tags. So, with no ~/.vimrc at all, the RHEL 4 installation of vim seems to work fine here. The version of matchit.vim I sourced is 1.9. Maybe there's a bug in version 1.13.2, or maybe there is something in your ~/.vimrc that's interfering with the proper operation of matchit.vim. Try using matchit.vim version 1.9 if you still have it and try the experiment above. We can probably get this figured out. Regards, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---