\begin{tabular}{c}
...
The c in the brackets is highlighted as a missspelled word.
Another one:
%\usepackage{...}
Usepackage is highlighted as a missspelled word.
I'd like to turn off the spelling correction in comments, for it is not important for Latex-documents, because that's not to see for the reader afterwards and I'd like to have the highlighting of the column setup in the tabular-statement fixed.
How to do these?
Tanks in advance,
surgeon
ftp://ftp.thp.uni-duisburg.de/pub/source/untex-1.3.tar.gz (or use your
distros package management ;) ).
this can be done via contains=@Spell and contains=@NoSpell in the syntax
file (see :help spell-syntax).
For tabular, and usepackage, this already seems to be ok (with
vim-7.1.123), some others I have defined myself, e.g. for texttt:
syn region texZone start="\\texttt{" end="}\|%stopzone\>" contains=@NoSpell
(one line)
Regards, Andreas
bas...@gmail.com schrieb:
> --~--~---------~--~----~------------~-------~--~----~
> You received this message from the "vim_use" maillist.
> For more information, visit http://www.vim.org/maillist.php
> -~----------~----~----~----~------~----~------~--~---
>
I would really appreciate a specific example on how to acomplish this.
My last try is
syn region texComment matchgroup=texStatement start='{tabular}{' end='}'
\ contains=@NoSpell
but it doesn't work...
Thank you very much!
With the help of your plugin HILINKS and your last suggestion I was finally able to get it to work.
The version I have in my config file (which I would not be able to write without your plugin) is:
syn region texTabularPos matchgroup=texStatement
\ start='\\begin\s*{\s*tabular\s*}[^}]*{' end='}' fold
\ contains=@texFoldGroup,@texDocGroup,@NoSpell
\ containedin=texDocZone,texChapterZone,texSectionZone,texSubSectionZone
Since I got this far, I would ask a related question.
Some authors names are first classified as bad spelling. For some names, say
Al-Faiz both words Al and Faiz are spelling errors. They are actually a name but unless they appear together this should be a bad spelling.
An idea I have is to define a command
\nospell and then when writing the name I would just write \nospell{Al-Faiz} and then I could instruct vim not to spell that region, using a technique similar to the above one.
Any idea on this?
Thanks!