1

I was editing the resume in latex I had downloaded from here.

Vim is most erratic when it comes to checking spelling. In the resume_cv.tex file, the spell checking works. When I open any of the linked files by opening them (using Ctrl-W+gf command), cv-sections/skills.tex, etc. spell checking does not work. The result is the same even if I open the files directly from the command line.

Completely unable to understand what is happening. How do I get spell checking back?

1

Most likely, the problem is that the files in which spell checking isn't working are being detected as filetype=plaintex, but the file where it works is detected as filetype=tex.

If that's the case, then you can give Vim a hint that your *.tex files will always be LaTeX by adding let g:tex_flavor = 'latex' in your vimrc, as described in :help ft-tex-plugin.

  • Well, both the files were set as filetype=tex. But spellcheck works on one and not in the other. When I manually set ft=plaintex for both, spellcheck works. I have added let g:tex_flavor = 'latex' in vimrc. Still I get the same behaviour. Still, both the files have ft=tex. – deshmukh Feb 15 '17 at 4:29
0

I do not understand what exactly is happening under the hood. But here is the remedy to the problem.

With that change in tex.vim, things work as expected.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.