X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/06820bf116da25bf9fc44f7091c3e9bcc5e972b1..a3f273839d1b45fe73b3bc48e1d7a8c6d1422187:/README.md diff --git a/README.md b/README.md index 1243577..60c58ec 100644 --- a/README.md +++ b/README.md @@ -137,14 +137,32 @@ Used as `$x^2$`, `$$x^2$$`, escapable as `\$x\$` and `\$\$x\$\$`. let g:vim_markdown_math = 1 ``` -#### YAML frontmatter +#### YAML Front Matter -Highlight YAML frontmatter as used by Jekyll: +Highlight YAML front matter as used by Jekyll or [Hugo](https://gohugo.io/content/front-matter/). ```vim let g:vim_markdown_frontmatter = 1 ``` +#### TOML Front Matter + +Highlight TOML front matter as used by [Hugo](https://gohugo.io/content/front-matter/). + +TOML syntax highlight requires [vim-toml](https://github.com/cespare/vim-toml). + +```vim +let g:vim_markdown_toml_frontmatter = 1 +``` + +#### JSON Front Matter + +Highlight JSON front matter as used by [Hugo](https://gohugo.io/content/front-matter/). + +```vim +let g:vim_markdown_json_frontmatter = 1 +``` + ## Mappings The following work on normal and visual modes: