3

I have no idea how I modified vim such that all braces are highlighted, not just matching ones, but I want to turn it off now. How do I do that? The usual highlighting of matching braces works fine.

5
  • Obviously, you forgot to mention in what editor is this behavior.
    – alex
    Nov 2, 2010 at 11:50
  • 3
    @alex obviously he tagged it vim Nov 2, 2010 at 12:01
  • 1
    @xenoterracide: ok, my bad. Still putting it straight from the start wouldn't hurt anybody, and tags are very easy to overlook, IMHO.
    – alex
    Nov 2, 2010 at 13:48
  • 2
    What happens if you :syn off?
    – ephemient
    Nov 2, 2010 at 23:52
  • It turned up out of nowhere and it disappeared by itself,
    – matcheek
    Nov 9, 2010 at 2:17

3 Answers 3

2

It could be a plugin called pi_paren. You should be able to turn it off by executing NoMatchParen (and DoMatchParen to turn it back on).

If you want to turn it off permanently, add (to your .vimrc):

NoMatchParen
1
  • not this one either unfortunately.The quest continues.
    – matcheek
    Nov 19, 2010 at 16:18
1

Did you do a search for a brace? If you did then you can either search for gibberish, or you can do a :set nohlsearch to turn off highlighting.

2
  • That was my first thought. No, it's something else.
    – matcheek
    Nov 2, 2010 at 16:45
  • Or :let @/ = '', which will clear the search pattern so you can leave hls on. (Even if it apparently doesn't matter, for OP)
    – ephemient
    Nov 2, 2010 at 23:50
0

Remove your ~/.viminfo file and start again.

1
  • 1
    bah humbug, just lost history but solved nothing
    – clearlight
    Nov 26, 2018 at 20:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.