This file contains hidden or 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
" Sets up multi-language syntax for Jekyll blog posts | |
fun! SetJekyllPostSyntax() | |
" Bring in YAML syntax for front matter | |
unlet b:current_syntax | |
syntax include @Yaml syntax/yaml.vim | |
syntax region yamlFrontmatter start=/\%^---$/ end=/^---$/ keepend contains=@Yaml | |
" Bring in C++11 syntax for code snippets | |
unlet b:current_syntax | |
syntax include @Cpp syntax/cpp11.vim |