aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
new file mode 100644
index 0000000..bceacc9
--- /dev/null
+++ b/.vimrc
@@ -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',
+ \})
+