Sunday, January 3, 2010

Spell checking

Hi all

I've looked but can't find an explanation of what seems curious behaviour of
the spell checking within Vim, at least when I am using LaTeX-suite.

When I turn on spell checking, some words are highlighted as misspelt but
others are not always highlighted, at least not immediately.

For instance, I use LaTeX-suite for writing letters with the letter class.
When I turn on spell checking for this letter file, unknown words and code
within LaTeX formatting code/brackets seem instantly highlighted as misspelt,
but misspelt words within body text are not.

At least not until I scroll down the document to the line where the spelling
mistake is lurking. Simply jumping to that line doesn't seem to reveal the
mistake and the only reliable method I have found of doing so seems to be
scrolling down to it.

I should say that I frequently use another post processor in conjunction with
LaTeX-suite called Scrivener (not the wordprocessor - the Scrivener I use goes
back to CP/M days) on these letter files to do arithmetic and counting.

Scrivener makes use of [[ and ]] to delineate the area for it to work on. If I
remove the ]] brackets and then turn on the spell checker, all misspelt words
are instantly highlighted within body text as well as within latex formatting
code. However, if I am not using LaTeX-suite but do use Scrivener in a
document, then the ]] brackets don't prevent the spell checker from working
instantly.

I wonder if there is some way in which LaTeX-suite and/or Scrivener's ]] could
be interfering with the way Vim's spell function works and if so, is it
possible to make some change so that the spell function concentrates on body
text first instead of LaTeX formatting code?

Cheers

G


--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment