Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions doc/vimtex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2949,7 +2949,7 @@ OPTIONS *vimtex-options*
Default value: 0

*g:vimtex_syntax_packages*
A dictionary for package specific syntax configuration. Each key represent
A dictionary for package specific syntax configuration. Each key represents
a single package and the values are themselves configuration dictionaries.
All packages share the following options:

Expand Down Expand Up @@ -4303,27 +4303,27 @@ automatically, see |g:vimtex_text_obj_variant| for more info.

Some examples of how to use the text objects can be useful. The following is
a simple table that shows the original text on the left, the keys that are
typed in the middle, and the result on the right. The bar "|" indicates the
typed in the middle, and the result on the right. The bar "" indicates the
cursor position before the operation. >

BEFORE KEYS AFTER
\comm|and{arg} dic \command{}
\command{a|rg} gUac \COMMAND{ARG}
\command{arg} dic \command{}
\command{arg} gUac \COMMAND{ARG}

\lef|t( asd \right) cid \left(| \right)
\left( asd \right) cid \left( \right)

\begin{x} die \begin{x}
hello world| \end{x}
hello world \end{x}
\end{x}

$math | here$ da$
$math here$ da$

\begin{itemize} \begin{itemize}
\item hello moon| cim \item |
\item hello moon cim \item
\end{itemize} \end{itemize}

\begin{itemize} \begin{itemize}
\item hello moon| dam \end{itemize}
\item hello moon dam \end{itemize}
\end{itemize}

Note: The "greediness" of the command text objects (`ic` and `ac`) can be
Expand Down Expand Up @@ -5727,7 +5727,7 @@ A common workflow is to utilize the |location-list| with |:lmake|:

After linting, the compiler or linter messages are added to the location list.
This list may be displayed in the location-list window with |:lwindow|, and
one may jump between the entries with |:lN| and |:lp|. To automatically open
one may jump between the entries with |:lne| and |:lp|. To automatically open
the location-list window after linting is finished, one may add the following
to one's |vimrc|: >vim

Expand Down Expand Up @@ -5763,7 +5763,7 @@ allows one to use the location list. For `AsyncRun`, one may define a custom
\ AsyncRun<bang> -auto=make -program=make

The quickfix window that lists the linter errors and warnings can then be
opened by |:cwindow| and they can be jumped to by |:cN| respectively |:cp|.
opened by |:cwindow| and they can be jumped to by |:cn| and |:cp| respectively.

Often, a syntax error in a BibTeX file is due to a missing comma after an
entry. One may define a command to automatically add such missing commas, e.g.
Expand Down Expand Up @@ -6439,7 +6439,7 @@ Note: This reference is currently a work in progress!

*vimtex#cite#get_key*
Returns the citation key under the cursor. Can be useful e.g. to create
a function to open a citation in another progrem such as BibDesk or Zotero.
a function to open a citation in another program such as BibDesk or Zotero.
For example: >vim

function! OpenInBibDesk() abort
Expand Down Expand Up @@ -6870,8 +6870,8 @@ A: VimTeX implements a traditional syntax script for syntax highlighting of

However, it is hard to write a general parser for LaTeX. This is because
LaTeX is a semantic language with a large amount of different commands and
macros from thousands of available packages, many of which makes sense to
highlight in a different manner. That is, we need to handle a whole lot of
macros from thousands of available packages, many of which make sense to be
highlighted in a different manner. That is, we need to handle a whole lot of
special cases and edge cases!

Furthermore, Tree-sitter highlighting does not currently support
Expand Down Expand Up @@ -6948,7 +6948,7 @@ A: Start by reading the section on |vimtex-view-texshop|. The examples below
was opened. If the buffer is not active, in a hidden tab or if the file is
not open at all, inverse search will fail.

As alternative, to `VimtexInverseSearch`if the .tex document was opened
As an alternative to `VimtexInverseSearch`, if the .tex document was opened
with the `--remote-silent` option, i.e.: >bash

/usr/local/bin/mvim --remote-silent foo.tex
Expand Down Expand Up @@ -6989,7 +6989,7 @@ the quickfix window does not load.

Tips:
1. Ensure that a latexmk process and a Perl process have started. If they have
not been started, then these two programs may not accessible given your
not been started, then these two programs may not be accessible given your
operating system's PATH environment variable.
2. Ensure that the option `-interaction=nonstopmode` is provided to latexmk.
This is done by default by VimTeX, unless the user provides custom options
Expand Down