> > What is the output from this command?
> >
> > :verbose set matchpairs?
>
> Here is the output.
>
> :verbose set match
> matchpairs matchtime
> matchpairs=(:),{:},[:],<:>
> Last set from ~/.vimrc
That's not what I expected, but I think I understand the problem
because I now observe the same problem when I edit an HTML file.
You probably have the matchit.vim plugin enabled. Execute this
command,
:echo b:match_words
You will probably see this:
<:>,<\@<=[ou]l\>[^>]*\%(>\|$\):<\@<=li\>:<\@<=/[ou]l>,<\@<=dl\>[^>]*\%(>\|$\):<\@<=d[td]\>:<\@<=/dl>,<\@<=\([^/][^ \t>]*\)[^>]*\%(>\|$\):<\@<=/\1>
Note that < and > are matched, but not any other bracket types.
If that is the cause of the problem you're seeing, too, then a
solution is to create an after file, ~/.vim/after/ftplugin/html.vim,
and put in it this line:
let b:match_words .= ",(:),{:},[:]"
Regards,
Gary
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment