Highlighting unmatched brackets in vim

后端 未结 7 494
感动是毒
感动是毒 2020-12-29 09:18

I\'m getting burned repeatedly by unmatched parentheses while writing python code in vim. I like how they\'re handled for C code - vim highlights in red all of the curly br

7条回答
  •  误落风尘
    2020-12-29 10:14

    You can get vim to do the opposite: do a

    :set showmatch

    and it will highlight matching parens. You'll know when you're unbalanced when it doesn't highlight something.

    I'm also assuming you're familiar with the '%' command, which bounces you to the matching element.

提交回复
热议问题