Hello, * On Sat, Sep 09, 2006 at 12:07:19AM +0200, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: > Noah Spurrier wrote: > >Is there a way to spell-check strings and comments using vim7.0 ? > > Well, spell-checking some parts of files and not others is possible > *provided* that syntax highlighting is enabled and that the relevant > syntax script defines what should be spell-checked and what shouldn't; > see ":help spell-syntax". The Python syntax script > $VIMRUNTIME/syntax/python.vim apparently defines no spelling or > non-spelling regions, so IIUC for that language spelling is > all-or-nothing.
I think that is not entirely true. In the spell-checking plugin I did maintain, I had implemented a workaround that injects the @Spell cluster in already existing syntax definitions. The solution consists in a big and ugly hack that detects syntax elements with "string" or "comment" in their name, to inject them with the new cluster. I've never checked if it worked correctly with Python, but I see no reason why it shouldn't. Of course the best solution is to have all syntax-plugin maintainers to update their scripts. -- Luc Hermitte http://hermitte.free.fr/vim/
