Skip to content

Disabling syntax invalidates text object $ #2583

@jimmy-zx

Description

@jimmy-zx

Description

When let g:vimtex_syntax_enabled = 0 is set, the text object $ is invalidated.

Steps to reproduce

minimal.vim:

set nocp

call plug#begin()
Plug 'lervag/vimtex'
call plug#end()

let g:vimtex_syntax_enabled = 0

syntax on

minimal.tex:

\begin{document}
$a + b = c$
\end{document}
  1. vim -u minimal.vim minimal.tex
  2. Perform da$ on $a + b = c$

Expected behavior

$a + b = c$ deleted

Actual behavior

Nothing happens

(Other text objects described in the documentation still works)

Do you use a latexmkrc file?

No

VimtexInfo

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions