Re: Is it possible to do spelling check for comments only?
Thank you very much, Swaroop! This is (almost) the answer to my unrequested feature for spell checking, specially for gettext message catalogs (po files). I tried editing the improved po.vim syntax script (http://www.vim.org/scripts/script.php?script_id=913) and figured out a 95% good solution, which is adding ",@Spell" to the end of line 35. Now only the translations are checked, not the original messages. This is great, because I can really stop and look at what is marked as misspelled. The catch is: accelerator keys, like "F" in _File or &File, aren't included in the word as far as it concerns the spell checking. I.e., vim will try to check the spelling of "ile" instead of "File". The syntax file defines a different color for the accelerator keys, to make them more easily recognizable. Could I have the best of both worlds, highlighting the accelerator keys differently and still counting them as part of the word for spell checking? I'm sorry to ask for assistance, but I don't know vimscript (would learn, but don't have the time to) and the syntax file author said he won't have time for it. (The last update was more than a year ago.) Thanks! Leonardo Fontenelle 2007/5/21, Swaroop C H <[EMAIL PROTECTED]>: > When programming, I have to turn the spelling check off. Or it will > show a lot of spelling "mistakes" in the code. I'd like to apply > spelling check for sentences within the comment blocks only. Is it > possible to configure VIM to do this? See :help spell-syntax Best, Swaroop --- www.ion.co.in
Re: Is it possible to do spelling check for comments only?
On 5/22/07, Edward L. Fox <[EMAIL PROTECTED]> wrote: On 5/21/07, Swaroop C H <[EMAIL PROTECTED]> wrote: > > When programming, I have to turn the spelling check off. Or it will > > show a lot of spelling "mistakes" in the code. I'd like to apply > > spelling check for sentences within the comment blocks only. Is it > > possible to configure VIM to do this? > > > See :help spell-syntax Hmmm, so that means that I could only define which regions to be spelling checked in the syntax highlight plugins. It's expected that syntax file would enable/allow spelling in comments. But it's added by synatx file maintainers, no ? Is it a problem of a specific language you are using ? Which language specifically are you talking about ? I think most-used languages do have spelling enabled in the comments. The less used languages might not yet have this added by their respective maintainer. not all, because this is relatively new feature and I do not think all syntax maintainers added this. But maybe I am wrong and I'm missing something. Which language are you talking about ? Yakov
Re: Is it possible to do spelling check for comments only?
On 5/21/07, Swaroop C H <[EMAIL PROTECTED]> wrote: > When programming, I have to turn the spelling check off. Or it will > show a lot of spelling "mistakes" in the code. I'd like to apply > spelling check for sentences within the comment blocks only. Is it > possible to configure VIM to do this? See :help spell-syntax Hmmm, so that means that I could only define which regions to be spelling checked in the syntax highlight plugins. But I still do wish to have an option that could temporarily open spelling checking to the code regions without closing the syntax highlighting. Maybe I'll send a wish list to Bram. :-P Best, Swaroop --- www.ion.co.in Regards, Edward L. Fox
Re: Is it possible to do spelling check for comments only?
When programming, I have to turn the spelling check off. Or it will show a lot of spelling "mistakes" in the code. I'd like to apply spelling check for sentences within the comment blocks only. Is it possible to configure VIM to do this? See :help spell-syntax Best, Swaroop --- www.ion.co.in
Is it possible to do spelling check for comments only?
Hi VIMmers, When programming, I have to turn the spelling check off. Or it will show a lot of spelling "mistakes" in the code. I'd like to apply spelling check for sentences within the comment blocks only. Is it possible to configure VIM to do this? Best regards, Edward L. Fox