Vim Recall繁體中文

Add good word for spelling

:spellgood

Example

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

Add good word for spelling.

English spelling

speling
bad
ordinary
accepted
mispelled
bad

Example files

Empty
Before & after
Before
speling ordinary mispelled
speling ordinary
Cursor on line 1, column 1

English spelling

speling
bad
ordinary
accepted
mispelled
bad

Example files

Empty
After
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

Start in Normal mode. Spelling is enabled with spelllang=en_us using Vim's installed English dictionary and the temporary spellfile example.add. Any added word data is confined to this temporary example directory.

Details & Vim help

Example replayed in Vim

Add good word for spelling. 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 :spe[llgood] 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.