7

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.

  • 4
    I've been happy with Ingo Karkat's SpellCheck.vim plugin, available at github.com/vim-scripts/SpellCheck and normally at vim.org/scripts/script.php?script_id=3844, except that vim.org is down at the moment. – garyjohn Jul 20 '15 at 5:34
  • 5
    You could add the words you want to skip to the internal-wordlist, with zG. 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. – VanLaser Jul 23 '15 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.