# Inline English grammar checker for vim-latex?

I am looking for English grammar checker for vim-latex suite that checks the grammar as I type but does not highlight what's inside  or & commands. Is there any such a thing?

I know that there is a LanguageTool but it seems that it does not work with .tex file.

• Can you post a simple example document which doesn't work well with TeX? Adding a basic equation doesn't seem to give any problems. Apr 28, 2015 at 15:12

vim-latexsuite is a very good addition for writing LaTeX documents and will handle spell checking as you want it to. Meaning, ignore equasions in spell checking and it also does a lot of other great stuff.

– Tom
Oct 19, 2015 at 22:32

I found the ultimate solution. vimtex with language tools using YaLafi . See the vim section of Yalafi's github page!!

Unlike above solution, you can also perform grammar check using LanguageTools, which is the solution which I wanted in the first place.

It rips the equations and characters from the current tex file and performs spell and grammar check using standalone language tools. You can even set your own replacing rules such that non-trivial names or sets of text can be replaced to common names like "John" or "Law" so that Language tools won't get confused with field-specific terms that aren't supported.

• More detail would certainly improve this answer Nov 10, 2021 at 18:56
• What kind of detail you want?? Everything is written on YaLafi's documentation. I'm not a developer of YaLafi, so I can't add anything more useful to this answer.
– Tom
Nov 10, 2021 at 21:15
• Well, we generally like answers to be self-contained with links as support. That means the main content of the answer should be, well, in the answer. So mentioning what YaLafi is might be good. Also on a separate note, you could explain how to use vimtex with YaLafi (you don't have to cover installation unless there are tricky steps, but it would be nice to cover keybindings/commands/whatever you need to know to use it regularly). Nov 10, 2021 at 21:21