Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Correct all occurrences of misspelled word

Is there a quick way to repeat a spelling correction?

For example, change every occurrence of teh to the after using :set spell, z= to correct the first occurrence?

like image 536
simont Avatar asked Aug 21 '12 02:08

simont


People also ask

What indicates a misspelled word?

These errors are indicated by colored, wavy lines. The red line indicates a misspelled word. The blue line indicates a grammatical error, including misused words.


1 Answers

After making the first correction with z=, e.g. teh to the, use :spellrepall, or shorter: :spellr.

like image 193
pb2q Avatar answered Sep 28 '22 10:09

pb2q