FG
💻 Software

Fix YAML syntax highlighting in VIM

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

Problem

The YAML syntax highlighting in Vim 7.3 isn't great. Putting an apostrophe in a line of text triggers quote highlighting even when there's no quote. The same thing happens in other files sometimes too. I've posted a screenshot below. Is there any way to fix this behavior, or is there a different YA…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Fix YAML syntax highlighting in VIM

Low Risk

look at your vim7.3 installation directory under , roughly line 32: if you throw that out, vim wont try to guess that is not the start of a string. the only other way imho would be to change the code so a only count as the start of a string, if the …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment