mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-19 15:23:40 -05:00
Add section headers.
This commit is contained in:
@@ -13,6 +13,8 @@ installing from this repository, add the following to your vimrc:
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
### Fenced Codeblock Highlighting
|
||||||
|
|
||||||
To enable fenced code block syntax highlighting in your markdown
|
To enable fenced code block syntax highlighting in your markdown
|
||||||
documents, add the following to your `.vimrc`:
|
documents, add the following to your `.vimrc`:
|
||||||
|
|
||||||
@@ -20,10 +22,14 @@ documents, add the following to your `.vimrc`:
|
|||||||
|
|
||||||
**Note**: The fenced language names must be valid names of syntax files in vim's `syntax` folder. For example: `syntax/ruby.vim`.
|
**Note**: The fenced language names must be valid names of syntax files in vim's `syntax` folder. For example: `syntax/ruby.vim`.
|
||||||
|
|
||||||
|
### Syntax Concealment
|
||||||
|
|
||||||
To disable markdown syntax concealing, add the following to your `.vimrc`:
|
To disable markdown syntax concealing, add the following to your `.vimrc`:
|
||||||
|
|
||||||
let g:markdown_syntax_conceal = 0
|
let g:markdown_syntax_conceal = 0
|
||||||
|
|
||||||
|
### Highlighting Synchronization
|
||||||
|
|
||||||
Syntax highlighting is synchronized in 50 lines. This may cause collapsed
|
Syntax highlighting is synchronized in 50 lines. This may cause collapsed
|
||||||
highlighting on large fenced code blocks.
|
highlighting on large fenced code blocks.
|
||||||
In that case, set `g:markdown_minlines` to a larger value in your `.vimrc`:
|
In that case, set `g:markdown_minlines` to a larger value in your `.vimrc`:
|
||||||
@@ -32,6 +38,8 @@ In that case, set `g:markdown_minlines` to a larger value in your `.vimrc`:
|
|||||||
|
|
||||||
**Note**: Setting `g:markdown_minlines` to a value that is too large value may cause poor highlighting performance.
|
**Note**: Setting `g:markdown_minlines` to a value that is too large value may cause poor highlighting performance.
|
||||||
|
|
||||||
|
### Folding
|
||||||
|
|
||||||
To enable folding, add the following to your `.vimrc`:
|
To enable folding, add the following to your `.vimrc`:
|
||||||
|
|
||||||
let g:markdown_folding = 1
|
let g:markdown_folding = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user