Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vanc skips over latex commands if they have an optional argument containing a space #290

Open
alexandreroberts opened this issue Dec 17, 2024 · 0 comments

Comments

@alexandreroberts
Copy link

Example, using vimtex for text object definitions:

This \emph{is} a \cite[23 note 3]{command} even though it cites a page. This one does not \cite{citekey} a page.

Begin at the beginning of the line. vanc<ESC> jumps to the end of \emph{is}, but then doing vanc<ESC> again jumps to the second cite command, \cite{citekey}.

I don't think this is a problem with vimtex's definition of the command text object, since it correctly highlights the first cite command as such (though perhaps the highlighting and the text object definitions are separate in vimtex?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant