MacVim:如何删除 MacVim 中突出显示的所有拼写错误的单词?

MacVim : How do I delete all the misspelled words highlighted in MacVim?

我是 MacVim 的新手,我想知道是否可以删除所有用命令突出显示的拼写错误的单词?我的 txt 中有数千行,我真的需要删除所有拼写错误的单词。他们在 En_US.

提前致谢。

此致,

你可以用宏来做到这一点:

qq]sde

qq     " start recording a macro in the register q
]s     " go to the next misspelled word
dw     " delete the word

然后你可以用100@q删除下100个拼错的单词。

根据您的 configuration/need,您可能希望使用 dW 删除下一个单词或使用 ]S 搜索下一个错误单词。

看看http://vimdoc.sourceforge.net/htmldoc/spell.html