Re: [Vim-latex-devel] Spell check not working in tex mode
Brought to you by:
srinathava,
tmaas
From: Till M. <ope...@ti...> - 2009-08-16 23:56:53
|
On Sun, Aug 16, 2009 at 06:04:29PM -0400, Raffi Khatchadourian wrote: > On Aug 16, 2009, at 3:17 PM, Till Maas wrote: > >> On Sat, Aug 15, 2009 at 04:44:41PM -0400, Raffi Khatchadourian wrote: >>> Sorry, I should have mentioned that spell was being set in my .vimrc >>> file. I've tried creating the tex.vim file and adding the suggested >>> line setlocal spell. What I just discovered is that the spell >>> underlining works for certain tex files but not others! That's very >>> strange. Any help would be greatly appreciated, thanks! >> >> Someone might help you a lot easier, if you provide an minimal example >> tex file for which the spell checking does not work. > > Well, this was an interesting exercise! It seems that the spell check > only works when certain environments and commands are used. For example, > the spell check works fine when the \begin{document} and \end{document} > commands are present. It also works when the \section{...} and The problem is afaics not vim-latex related, but maybe somehow hidden in the tex syntax rules shipped with vim. This is a workaround that works here on Fedora 10: :syntax spell toplevel References: http://vimdoc.sourceforge.net/htmldoc/syntax.html#:syn-spell :help spell-syntax Nevertheless it would be nice if you could forward this to the tex syntax file maintainer, but I do not know how to get in contact with him. Regards Till |