Highlighting unmatched brackets in vim

后端 未结 7 470
感动是毒
感动是毒 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:24

    Stop gap solution:

    :imap ( ()i
    

    This will make it so every time you type a left paren it will automatically put in the right and put you in the position of typing in between.

提交回复
热议问题