On Monday, October 19, 2015 at 4:47:31 PM UTC-4, Paul wrote:
>I wrote:
>> Oddly enough, I'm now getting into a mode wherein *no* words are
>> flagged as spelling errors. Except for solitary "s". That is,
>> unless I turn off syntax highlighting using ":syntax off". But
>> then, all LaTeX commands, arguments, tags, labels, and equations
>> get flagged as error. I slightly mitigated some of this using Dr.
>> Chip's tex.vim
>> (http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TEX), but
>> not by much.
>>
>> How do LaTeX/vim useres deal with this? Right now, it seems that
>> saving the resulting PDF as docx and using Word is the only way to
>> go, but that's really not right.
>
> Here is a solution that worked for me:
>
> :syn sync fromstart
>
> See
> http://stackoverflow.com/questions/23353009/vim-spellcheck-not-always-working-in-tex-file-check-region-in-vim.
>
> I also found LaTeX add-in suites for vim, but getting to know a
> whole new environment is not a practical solution for me at this
> point, especially considering that the problem is very specific.
Actually, it isn't quite a complete solution, either. As a test, I
issued a "zw" on the valid word "fictitious", and it is became marked
as a spelling error as desired, but only outside of the optional
argument to \caption[optional argument]{Mandatory argument}.
I can, of course, do ":syntax off", which causes "fictitious" to be
marked as an error (as desired), but then I get all the false
positives from the LaTeX keywords, commands, labels, etc.
I never suspected that spell-checking a LaTeX file could be such a
mine field.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment