Vim is spellchecking in XML files where I don't want it to, and only there

Posted by Kazark on Super User See other posts from Super User or by Kazark
Published on 2012-11-14T04:09:06Z Indexed on 2012/11/14 5:02 UTC
Read the original article Hit count: 606

Filed under:
|
|

I'm trying to use Vim's builtin spellchecking in some XML documents. This happens merely by having the XML syntax loaded, as seen in the following minimalistic example (which reproduces what I also see in large XML documents):

spellchecking text but not xml

Note that given two buffers with exactly the same content, when Filetype is text, the spellchecking works; when it is xml, it does not. spell is set in both buffers.

However, given this view of the top three lines of a large XML document, you can see that the spellchecking is certainly on:

spellchecking working on attributes

but it is only checking attributes.

The nuisance is that none of the things it is actually finding are mispelled, and it isn't finding any of the numerous misspellings in the document. I would like it at a minimum to find the spelling errors in the body of the document, and being able to turn off the checking on attributes would be a nice option.

I've searched for @NoSpell in the xml.vim file, but that returns no hits.

© Super User or respective owner

Related posts about vim

Related posts about Xml