How can I on-the-fly spellcheck XML in vim with XML tags excluded from being spellchecked? -
my vim spellchecks docbook xml files well, underlines bad words inside <tags>, wrong behaviour. knows how make skip tags spellchecking?
which parts spell-checked depends on @spell cluster attribute assigned syntax elements in $vimruntime/syntax/xml.vim. example, 1 on xmlregion turns on spell checking inside xml tags.
you copy syntax script ~/.vim/syntax/docbookxml , use 'filetype' instead of xml (or :setlocal syntax=docbookxml).
Comments
Post a Comment