FG
💻 Software

vim highlight (color) parentheses

Fresh5 days ago
Mar 15, 20269549 views
Confidence Score0%
0%

Problem

I have tried to put the following in my .vimrc file: to permanently color brackets, parentheses, braces etc, however it doesnt work. If I do it inline inside vim it does work. Any ideas why? Thanks

Error Output

syn match parens /[(){}]/
hi parens ctermfg=red

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: vim highlight (color) parentheses

Low Risk

Because all syntax highlighting is local to the buffer that is active when the syntax items are defined. Try something like this:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment