Using vim 7.2, spell checking is not limited to comments and strings in .java
source files as it should be.  Instead, all text in the file is spell checked.

The problem starts with $VIM/vim72/syntax/java.vim, which includes html.vim:

    syntax include @javaHtml <sfile>:p:h/html.vim

In $VIM/vim72/syntax/html.vim, syntax is turned on for the toplevel:

    syntax spell toplevel

That may make sense in an HTML file, but not in Java.  One solution is to amend
java.vim:

    syntax include @javaHtml <sfile>:p:h/html.vim
    syntax spell default

Whether that is the correct solution, I'll leave to the experts.  Note too this
likely affects other syntax files that include html.vim:

    papp.vim
    java.vim
    groovy.vim
    spyce.vim

Thanks,

Steve


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

Reply via email to