1

I frequently need to correct files that have numerous spelling errors. Spellcheck tags all these words, but is there a command or function within vim that will dump all these tagged words to a file?

user985675
  • 760
  • 3
  • 9
  • 18

1 Answers1

1

My SpellCheck plugin provides a command that populates Vim's quickfix list with all spelling errors. This is even better than dumping to a file in that you can quickly locate each spelling error. It also sets up mappings in the quickfix list to "remotely" correct / add to spell dict the mistakes.

Ingo Karkat
  • 22,638
  • 2
  • 45
  • 58
  • Karkat Thank you for your response. Afraid I decided there was no such command, so I wrote this mapping to do so `code` map qzq:w y:setlocal spell spelllang=en:let wds="":while line('.')>=@z:let @z=line('.'):norm ]syw:let wds=wds.@".' ':endwhile:e y.vimggdG:exe setline(1, wds)gg:s/ \+/\r/ge:sort u `code` I need it as a file, y.vim, because I semi-automatically turn this into a vimscript of substitute commands – user985675 May 02 '15 at 16:38