Vim Recall繁體中文

Repeat the last spelling correction for the same word

:spellrepall

Example

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

Repeat the last spelling correction for the same word.

English spelling

speling
bad
ordinary
accepted
mispelled
bad
Before & after
Before
Spelling ordinary mispelled
speling ordinary
Cursor on line 1, column 1

English spelling

speling
bad
ordinary
accepted
mispelled
bad
After
Spelling ordinary mispelled
Spelling ordinary
Cursor on line 1, column 1

English spelling

speling
bad
ordinary
accepted
mispelled
bad

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 counted 1z= selected the installed dictionary's first suggestion without a menu and corrected the first speling; :spellrepall reuses that correction for the remaining occurrence.

Details & Vim help

Example replayed in Vim

After picking a spelling suggestion with z=, run :spellrepall to apply the same correction to matching occurrences of that word in the buffer.