Fix YAML syntax highlighting in VIM

Posted by Kevin Burke on Super User See other posts from Super User or by Kevin Burke
Published on 2011-01-24T01:47:15Z Indexed on 2012/06/28 9:18 UTC
Read the original article Hit count: 296

Filed under:
|
|

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 YAML syntax file I can use that won't trigger this behavior? This occurs in both MacVim and Vim in the Terminal. I'm running v7.3.

Thanks for your help, Kevin

attached a

© Super User or respective owner

Related posts about vim

Related posts about regex