X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/8b54e061e105fba060d6c24c0a05679c2f951810..e1d8331302bfcd52dc6744a713dab2f79643e182:/README.md?ds=sidebyside diff --git a/README.md b/README.md index b3681a5..bb53b3b 100644 --- a/README.md +++ b/README.md @@ -127,12 +127,35 @@ Concealing is set for some syntax. For example, conceal `[link text](link url)` as just `link text`. -To disable conceal, add the following to your '.vimrc': +To enable conceal use Vim's standard conceal configuration. + +```vim +set conceallevel=2 +``` + +To disable conceal regardless of `conceallevel` setting, add the following to your `.vimrc`: ```vim let g:vim_markdown_conceal = 0 ``` +### Fenced code block languages + +You can use filetype name as fenced code block languages for syntax highlighting. +If you want to use different name from filetype, you can add it in your `.vimrc` like so: + +```vim +let g:vim_markdown_fenced_languages = ['csharp=cs'] +``` + +This will cause the following to be highlighted using the `cs` filetype syntax. + + ```csharp + ... + ``` + +Default is `['c++=cpp', 'viml=vim', 'bash=sh', 'ini=dosini']`. + ### Syntax extensions The following options control which syntax extensions will be turned on. They are off by default.