Is there a built-in command or plugin available to trigger spell checking over the entire current buffer, prompting me for each word it detects to either ignore, add to dictionary, or correct spelling?
I've been using ]s
to skip through spelling suggestions and zg
or z=
to add to dictionary or suggest corrections, but when a buffer as a lot of instances of the same spelling it's kind of annoying skipping past every instance, especially when it's code or config files that have a lot of things that aren't misspelled but don't belong in the dictionary, like variable names or command line gibberish.
internal-wordlist
, withzG
. Since the list is lost when you exit Vim, it's similar to 'skip', and Vim won't ask you again to correct the same word, in the same session. Another way would be to teach Vim to only spell-check by syntax, i.e. in certain regions, and ignore the others.