X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c4773a9b8e0ac823009bb342b2642f780de33cdc..fc679c4c0fd36b93ce0cc3e88348df9b35b6a43b:/README.md?ds=inline diff --git a/README.md b/README.md index da77a07..1a6fd1d 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ tar --strip=1 -zxf vim-markdown-master.tar.gz Add the following line to your `.vimrc` to disable the folding configuration: ```vim -let g:vim_markdown_folding_disabled=1 +let g:vim_markdown_folding_disabled = 1 ``` This option only controls Vim Markdown specific folding configuration. @@ -76,7 +76,22 @@ To fold in a style like [python-mode](https://github.com/klen/python-mode), add the following to your `.vimrc`: ```vim -let g:vim_markdown_folding_style_pythonic=1 +let g:vim_markdown_folding_style_pythonic = 1 +``` + +### Set header folding level + +Folding level is a number between 1 and 6. By default, if not specified, it is set to 1. + +```vim +let g:vim_markdown_folding_level = 6 +``` + +Tip: it can be changed on the fly with: + +```vim +:let g:vim_markdown_folding_level = 1 +:edit ``` ### Disable Default Key Mappings @@ -84,7 +99,7 @@ let g:vim_markdown_folding_style_pythonic=1 Add the following line to your `.vimrc` to disable default key mappings: ```vim -let g:vim_markdown_no_default_key_mappings=1 +let g:vim_markdown_no_default_key_mappings = 1 ``` You can also map them by yourself with `` mappings. @@ -98,7 +113,7 @@ The following options control which syntax extensions will be turned on. They ar Used as `$x^2$`, `$$x^2$$`, escapable as `\$x\$` and `\$\$x\$\$`. ```vim -let g:vim_markdown_math=1 +let g:vim_markdown_math = 1 ``` #### YAML frontmatter @@ -106,22 +121,7 @@ let g:vim_markdown_math=1 Highlight YAML frontmatter as used by Jekyll: ```vim -let g:vim_markdown_frontmatter=1 -``` - -#### Folding level - -Folding level is a number between 1 and 6. By default, if not specified, it is set to 1. - -```vim -let g:vim_markdown_folding_level = 6 -``` - -Tip: it can be changed on the fly with: - -```vim -:let g:vim_markdown_folding_level = 1 -:edit +let g:vim_markdown_frontmatter = 1 ```