More info; I found this in my .(g)vimrc :

set matchpairs+=?::,=:;

so that's: PLUS EQUALS QUESTION_MARK COLON COLON COMMA EQUALS COLON SEMICOLON

It's been in there for ages (checked some backups and I've had my rc file for 
2 years or so, I think) and never gave me any problems. Does anyone know what 
it's supposed to do and what the syntax should be? For now I'll comment it 
out, so the errors are gone.

Grts,
Paul

On Tuesday 05 September 2006 23:33, A.J.Mechelynck wrote:
> Paul van Erk wrote:
> > Hi,
> >
> > I have weird matching pairs erros. It seems vim tries to match ";" at the
> > end of lines. The result is:
> >
> > Error detected while processing function <SNR>20_Highlight_Matching_Pair:
> > line   38:
> > E684: list index out of range: 11
> >
> > After that I have to <ESC> like mad to get out of the error.
> >
> > I tried searching for the location where it has a list of matchable
> > characters, but I couldn't find it. Does anyone know what's wrong?
> >
> > Grts,
> > Paul van Erk
>
> <SNR>20_ means a function defined with s: or <SID> in the 20th sourced
> script, as shown by ":scriptnames". I guess it might be the matchparen
> plugin.
>
> What is your 'matchpairs' option set to? It should contain
> comma-separated pairs of colon-separated single characters, by default
> (:),[:],{:}
>
> I suspect you may have mistyped the example for matching equal signs to
> semicolons mentioned at ":help 'matchpairs'": in
>
>       :set matchpairs+==:;
>
> there should be a plus sign, _two_ equal signs, a colon and a semicolon.
> Also, the example given (at line 4398 of options.txt for Vim 7.0 dated
>
> 2006 Aug 09) ought to have "setlocal" rather than "set", as follows:
>       :au FileType c,cpp,java setl mps+==:;
>
>                                  ^
>
> in order to avoid clobbering the global default value for non-C non-C++
> non-Java files.
>
>
> Best regards,
> Tony.

-- 
Website: http://www.parena.net
dbKalendar http://www.parena.net/dbKalendar

Reply via email to