8

I'm checking spelling in a document. I find a misspelled word and intend to press z= to get suggestions, but I accidentally press zg, marking this as a "good" spelling.

How can I undo that?

  • One way is to manually undo the changes to the spelling files and restart vim. But that's tedious. – Nathan Long Feb 26 at 18:09
14

From the help

zuw                         *zug* *zuw*
zug         Undo |zw| and |zg|, remove the word from the entry in
            'spellfile'.  Count used as with |zg|.

zuW                         *zuG* *zuW*
zuG         Undo |zW| and |zG|, remove the word from the internal
            word list.  Count used as with |zg|.
| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.