Update docs for extended cmd folding
This commit is contained in:
parent
5506728347
commit
fb10a2426c
@ -476,9 +476,33 @@ Options~
|
|||||||
\ "subsubsection",
|
\ "subsubsection",
|
||||||
\ ]
|
\ ]
|
||||||
<
|
<
|
||||||
*g:vimtex_fold_usepackage*
|
*g:vimtex_fold_cmd_pattern1*
|
||||||
Use this option to disable/enable folding of long `\usepackage` lines. The
|
Use this option to disable/enable folding of commands with a single
|
||||||
lines must be formatted like this for folding to work properly: >
|
mandatory argument written on separate lines. The lines must be
|
||||||
|
formatted like this for folding to work properly: >
|
||||||
|
|
||||||
|
\hypersetup{
|
||||||
|
option 1,
|
||||||
|
...,
|
||||||
|
option n
|
||||||
|
}
|
||||||
|
<
|
||||||
|
Default value: 1
|
||||||
|
|
||||||
|
*g:vimtex_fold_cmd_pattern1_list*
|
||||||
|
Use this option to specify commands which should be folded according
|
||||||
|
to |g:vimtex_fold_cmd_pattern1|.
|
||||||
|
|
||||||
|
Default value:
|
||||||
|
let *g:vimtex_fold_cmd_pattern1_list* = [
|
||||||
|
\ 'hypersetup',
|
||||||
|
\ 'tikzset',
|
||||||
|
\ ]
|
||||||
|
|
||||||
|
*g:vimtex_fold_cmd_pattern2*
|
||||||
|
Use this option to disable/enable folding of commands with many
|
||||||
|
optional arguments written on separate lines. The lines must be
|
||||||
|
formatted like this for folding to work properly: >
|
||||||
|
|
||||||
\usepackage[
|
\usepackage[
|
||||||
option 1,
|
option 1,
|
||||||
@ -488,9 +512,20 @@ Options~
|
|||||||
<
|
<
|
||||||
Default value: 1
|
Default value: 1
|
||||||
|
|
||||||
*g:vimtex_fold_newcommands*
|
*g:vimtex_fold_cmd_pattern2_list*
|
||||||
Use this option to disable/enable folding of long `\[re]newcommand` and
|
Use this option to specify commands which should be folded according
|
||||||
`\[re]newenvironment` lines. The lines must be formatted like this for
|
to |g:vimtex_fold_cmd_pattern2|.
|
||||||
|
|
||||||
|
Default value:
|
||||||
|
let *g:vimtex_fold_cmd_pattern2_list* = [
|
||||||
|
\ 'usepackage',
|
||||||
|
\ 'includepdf',
|
||||||
|
\ ]
|
||||||
|
|
||||||
|
*g:vimtex_fold_cmd_pattern3*
|
||||||
|
Use this option to disable/enable folding of commands with a short
|
||||||
|
first mandatory argument and second or more mandatory arguments
|
||||||
|
written on separate lines. The lines must be formatted like this for
|
||||||
folding to work properly: >
|
folding to work properly: >
|
||||||
|
|
||||||
\[re]newcommand{\command}{
|
\[re]newcommand{\command}{
|
||||||
@ -502,6 +537,19 @@ Options~
|
|||||||
|
|
||||||
Default value: 1
|
Default value: 1
|
||||||
|
|
||||||
|
*g:vimtex_fold_cmd_pattern3_list*
|
||||||
|
Use this option to specify commands which should be folded according
|
||||||
|
to |g:vimtex_fold_cmd_pattern3|.
|
||||||
|
|
||||||
|
Default value:
|
||||||
|
let *g:vimtex_fold_cmd_pattern3_list* = [
|
||||||
|
\ '%(re)?new%(command|environment)',
|
||||||
|
\ 'providecommand',
|
||||||
|
\ 'presetkeys',
|
||||||
|
\ 'Declare%(Multi|Auto)?CiteCommand',
|
||||||
|
\ 'Declare%(Index)?%(Field|List|Name)%(Format|Alias)',
|
||||||
|
\ ]
|
||||||
|
|
||||||
*g:vimtex_fold_documentclass*
|
*g:vimtex_fold_documentclass*
|
||||||
Use this option to disable/enable folding of long `\documentclass` lines. This
|
Use this option to disable/enable folding of long `\documentclass` lines. This
|
||||||
works similar to |g:vimtex_fold_usepackage|.
|
works similar to |g:vimtex_fold_usepackage|.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user