Monday, March 7, 2011

How to disable the highlighting of parenthesis matching brace bracket

How to disable the highlighting of parenthesis matching brace bracket

The reason why the matching parenthesis / braces / brackets are highlighted is becuase there is a plugin called /usr/local/share/vim/vim73/plugin/matchparen.vim.

You can press % to jump to the matching parenthesis / braces / brackets.

To disable the highlight:

Method 1:
Put this line in your ~/.vimrc:
let loaded_matchparen = 1

Method 2:
run this command in vim:
:NoMatchParen

NoMatchParen is a command to the loaded plugin to ask it to stop matching.
Setting "loaded_matchparen", on the other hand, stops the plugin from
ever loading (by making it think that it's already running).

No comments: