diff options
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +" fix vimtex highlighting for \code{} +syntax match texCmdVerb "\\code\>\*\?" nextgroup=texVerbZoneInline +call vimtex#syntax#core#new_arg('texVerbZoneInline', { + \ 'contains': '', + \ 'matcher': 'start="{" end="}"' + \}) +" and \begin{codeblock} ... \end{codeblock} +call vimtex#syntax#core#new_env({ + \ 'name': 'codeblock', + \ 'region': 'texVerbZone', + \}) + |