marshallward / vim-restructuredtext

Syntax file for reStructuredText on Vim.
26 stars 12 forks source link

No Spell Check on rst Section Headings #10

Closed markperfectsensedigital closed 7 years ago

markperfectsensedigital commented 7 years ago

Thanks for making the VIM rST syntax highlighter. Works perfectly.

Currently VIM does not do spell check on rST headings, and seems like a reasonable design decision. Can you add a) an instruction in rst.vim explaining how to turn on spell check for rST headings? b) add commented-out lines that turn on such spelling?

Thank you.

marshallward commented 7 years ago

Thanks, I think this is a good idea. I've explicitly added contains=@Spell to the section highlight (729de178d5c2afcfa5674c0ebcd9c8fc901e12c4).

Maybe there's a more elegant solution, such as a flag to enable it, but I think having it on all the time is generally reasonable.