vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
426 stars 61 forks source link

Is it possible to toggle on/off highlighting for spelling? #308

Closed anthrolisp closed 4 years ago

anthrolisp commented 4 years ago

Is it possible to toggle on/off highlighting for spelling, rather than have it be defaulted to on?

fmoralesc commented 4 years ago

You can blacklist the spell module, and use something like vim-uninpaired's yos to toggle spell on and off.

Jiggins commented 4 years ago

You could also toggle spell checking completely:

set spell!

See :help spell for more info.

alerque commented 4 years ago

This plugin (the syntax one) only enables spelling on the Markdown syntax (basically informing VIM that it can be spell checked), it does not actually enable the spell checking mode.

If you are using the vim-pandoc plugin in addition to this one, that does turn on a number of VIM features by default. You can till in not to enable spelling like this:

let g:pandoc#spell#enabled = 0

If not and you're using this on it's own (or if that doesn't work because it wasn't vim-pandoc than enabled spelling), my guess is you have spell checking enabled by default in your rc file. You could either set it to default off there globally or add an autocmd rule to turn it off just when you open markdown files.