Vim Recall繁體中文

Clear good or bad word

:spellundo

Example

Normal 0 / 2
speling ordinary mispelled
speling ordinary
Cursor on line 1, column 1

Clear good or bad word.

English spelling

speling
accepted
ordinary
accepted
mispelled
bad

Example files

example.add
speling
example.add.spl
39 bytes
Before & after
Before
speling ordinary mispelled
speling ordinary
Cursor on line 1, column 1

English spelling

speling
accepted
ordinary
accepted
mispelled
bad

Example files

example.add
speling
example.add.spl
39 bytes
After
speling ordinary mispelled
speling ordinary
Cursor on line 1, column 1

English spelling

speling
bad
ordinary
accepted
mispelled
bad

Example files

example.add
#peling
example.add.spl
23 bytes

Start in Normal mode. Spelling is enabled with spelllang=en_us using Vim's installed English dictionary and the temporary spellfile example.add. A prior zg on speling added that word to example.add before :spellundo removes the addition.

Details & Vim help

Example replayed in Vim

Clear good or bad word. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :spellu[ndo] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.