How do I temporarily disable the matchparen plugin in Vim?
Answer
:NoMatchParen
Explanation
Vim's built-in matchparen plugin highlights matching delimiters as your cursor moves. That is usually helpful, but in very large files or heavy macro/replay workflows it can add noticeable redraw overhead and visual flicker. :NoMatchParen turns that plugin off for the current session so navigation and repeated edits feel snappier.
How it works
matchparenis a runtime plugin that uses autocommands to update match highlighting:NoMatchParendisables those autocommands, effectively pausing the feature- This is a runtime toggle, so you can turn it off only when performance or distraction becomes an issue
- It is especially useful during bulk edits where delimiter feedback is less important than speed
Example
While running macros across a large minified file, cursor movement may feel laggy because delimiter matching updates on every jump. Run:
:NoMatchParen
Continue the heavy edit pass, then re-enable when finished:
:DoMatchParen
Tips
- Use this as a tactical toggle, not necessarily a permanent default
- If you want to disable it for certain filetypes only, wrap the command in filetype-specific autocommands