Created
February 24, 2019 13:09
-
-
Save wsdjeg/4ac99019c5ca156d35704550648ba321 to your computer and use it in GitHub Desktop.
Markdown syntax with colored YAML front matter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Save this file as: .vim/after/syntax/markdown.vim | |
exe 'runtime! syntax/yaml.vim' | |
unlet! b:current_syntax | |
syn include @YamlTop syntax/yaml.vim | |
unlet! b:current_syntax | |
syn region yamlHead start="\%^---$" end="^---\s*$" keepend contains=@YamlTop,@Spell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment