Repeat the last spelling correction for the same word
:spellrepall
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Spelling ordinary mispelled
speling ordinaryCursor on line 1, column 1Spelling ordinary mispelled
speling ordinaryCursor on line 1, column 1Spelling ordinary mispelled
Spelling ordinaryCursor on line 1, column 1Repeat the last spelling correction for the same word.
English spelling
- speling
bad- ordinary
accepted- mispelled
bad
Command entered · ready to apply
English spelling
- speling
bad- ordinary
accepted- mispelled
bad
Changed the remaining speling to Spelling.
English spelling
- speling
bad- ordinary
accepted- mispelled
bad
Before & after
Spelling ordinary mispelled
speling ordinaryCursor on line 1, column 1English spelling
- speling
bad- ordinary
accepted- mispelled
bad
Spelling ordinary mispelled
Spelling ordinaryCursor on line 1, column 1English 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.