Paul van Erk wrote:
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

It's supposed to treat ? and : on the one hand, and = and ; on the other hand, as "paired brackets". However, the matchparen plugin uses a rather elementary algorithm to split 'matchpairs' into individual items: any colons and commas are regarded as delimiters, and then odd "parts" are treated as "left brackets", even ones as "right brackets".

I see the following possible cures, use only one of them:
(a) disable matchparen matching

        :set loaded_matchparen = 1

(b) remove the questionable pair "?::" from the 'matchpairs' options

(c) patch plugin/matchparen.vim to refine the splitting algorithm, so that a colon should be treated as either a separator or a "bracket" depending on position within the option.


Best regards,
Tony.

Reply via email to