Thread: [Vim-latex-devel] Spell check not working in tex mode
Brought to you by:
srinathava,
tmaas
From: Raffi K. <kha...@cs...> - 2009-08-15 18:52:04
|
Does anyone have a problem with spell check highlighting not working when the filetype is equal to tex? The red underlinings don't show up until I switch the file type equal to txt, however, I loose the tex syntax highlighting in the process. Thanks! Raffi |
From: Mike R. <ri...@um...> - 2009-08-15 20:18:06
|
Do you have a ~/.vim/ftplugin/tex.vim? I think if you just put "setlocal spell" in there, you should be ok. Mike On Sat, Aug 15, 2009 at 2:29 PM, Raffi Khatchadourian<kha...@cs...> wrote: > Does anyone have a problem with spell check highlighting not working > when the filetype is equal to tex? The red underlinings don't show up > until I switch the file type equal to txt, however, I loose the tex > syntax highlighting in the process. Thanks! > > Raffi > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > |
From: Raffi K. <kha...@cs...> - 2009-08-15 20:45:29
|
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! On Aug 15, 2009, at 4:17 PM, Mike Richman wrote: > Do you have a ~/.vim/ftplugin/tex.vim? I think if you just put > "setlocal spell" in there, you should be ok. > > Mike > > On Sat, Aug 15, 2009 at 2:29 PM, Raffi > Khatchadourian<kha...@cs...> wrote: >> Does anyone have a problem with spell check highlighting not working >> when the filetype is equal to tex? The red underlinings don't show up >> until I switch the file type equal to txt, however, I loose the tex >> syntax highlighting in the process. Thanks! >> >> Raffi >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports >> 2008 30-Day >> trial. Simplify your report design, integration and deployment - >> and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Vim-latex-devel mailing list >> Vim...@li... >> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel >> |
From: Raffi K. <kha...@cs...> - 2009-08-15 20:48:29
|
In fact, its not only the underlining that doesn't work, it doesn't seem to recognize misspelled words even with the ]s keystroke, despite 'spell' being turned on. On Aug 15, 2009, at 4:17 PM, Mike Richman wrote: > Do you have a ~/.vim/ftplugin/tex.vim? I think if you just put > "setlocal spell" in there, you should be ok. > > Mike > > On Sat, Aug 15, 2009 at 2:29 PM, Raffi > Khatchadourian<kha...@cs...> wrote: >> Does anyone have a problem with spell check highlighting not working >> when the filetype is equal to tex? The red underlinings don't show up >> until I switch the file type equal to txt, however, I loose the tex >> syntax highlighting in the process. Thanks! >> >> Raffi >> >> ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports >> 2008 30-Day >> trial. Simplify your report design, integration and deployment - >> and focus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> Vim-latex-devel mailing list >> Vim...@li... >> https://lists.sourceforge.net/lists/listinfo/vim-latex-devel >> |
From: Till M. <ope...@ti...> - 2009-08-16 19:18:15
|
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. Regards Till |
From: Raffi K. <kha...@cs...> - 2009-08-16 22:05:26
|
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 \chapter{...} commands are present. However, it does not work when there is, for example, only \begin{theorem} or \end{theorem} commands present. I use a lot of \include and \input commands in my tex documents, so, naturally, many files will not have \section, \chapter, or \begin{document}...\end{document} commands. I've attached two minimal sample tex files to this email. The first tex file illistrates a situations where the spell check *does not* work. The second illustrates a situation where the spell check *does* work. Any help would be greatly appreciated! |
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 |
From: Raffi K. <kha...@cs...> - 2009-08-17 14:42:00
|
On Aug 16, 2009, at 7:25 PM, Till Maas wrote: > 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. Thanks for the advice Till. That did the trick on my system. I will try to get in contact with the maintainer. Raffi |