6

Is there a way to disable the highlight of matching parenthesis in Vim only in insert mode?

Using :NoMatchParen will disable it in both normal and insert mode.

Edit: I tried using autocmd as suggested in a comment, and I have now in my .vimrc the lines

au InsertEnter * NoMatchParen
au InsertLeave * DoMatchParen

However, with this, when I have two buffers in a split, leaving the insert mode changes the buffer I'm in. Any suggestions?

1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.