Skip to content

Instantly share code, notes, and snippets.

@wsdjeg
Created February 24, 2019 13:09
Show Gist options
  • Save wsdjeg/4ac99019c5ca156d35704550648ba321 to your computer and use it in GitHub Desktop.
Save wsdjeg/4ac99019c5ca156d35704550648ba321 to your computer and use it in GitHub Desktop.
Markdown syntax with colored YAML front matter
" 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