@@ -1265,7 +1265,7 @@ doxygen_javadoc_autobrief 1 Set to 0 to disable javadoc autobrief
12651265doxygen_end_punctuation '[.]' Set to regexp match for the ending
12661266 punctuation of brief
12671267
1268- There are also some hilight groups worth mentioning as they can be useful in
1268+ There are also some highlight groups worth mentioning as they can be useful in
12691269configuration.
12701270
12711271Highlight Effect ~
@@ -2641,6 +2641,48 @@ Any combination of these three variables is legal, but might highlight more
26412641commands than are actually available to you by the game.
26422642
26432643
2644+ R *r.vim* *ft-r-syntax*
2645+
2646+ The parsing of R code for syntax highlight starts 40 lines backwards, but you
2647+ can set a different value in your | vimrc | . Example: >
2648+ let r_syntax_minlines = 60
2649+
2650+ You can also turn off syntax highlighting of ROxygen: >
2651+ let r_syntax_hl_roxygen = 0
2652+
2653+ enable folding of code delimited by parentheses, square brackets and curly
2654+ braces: >
2655+ let r_syntax_folding = 1
2656+
2657+ and highlight as functions all keywords followed by an opening parenthesis: >
2658+ let r_syntax_fun_pattern = 1
2659+
2660+
2661+ R MARKDOWN *rmd.vim* *ft-rmd-syntax*
2662+
2663+ To disable syntax highlight of YAML header, add to your | vimrc | : >
2664+ let rmd_syn_hl_yaml = 0
2665+
2666+ To disable syntax highlighting of citation keys: >
2667+ let rmd_syn_hl_citations = 0
2668+
2669+ To highlight R code in knitr chunk headers: >
2670+ let rmd_syn_hl_chunk = 1
2671+
2672+ By default, chunks of R code will be highlighted following the rules of R
2673+ language. If you want proper syntax highlighting of chunks of other languages,
2674+ you should add them to either `markdown_fenced_languages` or
2675+ `rmd_fenced_languages` . For example to properly highlight both R and Python,
2676+ you may add this to your | vimrc | : >
2677+ let rmd_fenced_languages = ['r', 'python']
2678+
2679+
2680+ R RESTRUCTURED TEXT *rrst.vim* *ft-rrst-syntax*
2681+
2682+ To highlight R code in knitr chunk headers, add to your | vimrc | : >
2683+ let rrst_syn_hl_chunk = 1
2684+
2685+
26442686 READLINE *readline.vim* *ft-readline-syntax*
26452687
26462688The readline library is primarily used by the BASH shell, which adds quite a
0 commit comments