Noah Spurrier wrote:
Is there a way to spell-check strings and comments using vim7.0 ?
This is for Python in particular, but doing this in any
language would be useful.

Yours
Noah



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'm adding the maintainer of that script to the CC list so if he's interested he may add syntax checking for Python comments and/or strings. (But are you sure that _all_ your strings are English text?)


Best regards,
Tony.

Reply via email to