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?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityI'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?
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|.