Today I Learned

hashrocket A Hashrocket project

Vim Spelling Suggestions

Vim makes finding misspellings easy, with this command:

:set spell

You may need to adjust your color scheme to read the highlighted words. I like 'ron' for this purpose.

Once Vim has highlighted a typo, what then? What is the correct spelling?

Put your cursor over the word, and type z= for a list of suggestions. You can replace the word with the index number of your choice:

Change "tryin" to:
 1 "Tryin"
 2 "Trying"
 3 "Train"
 4 "Try in"
 5 "Tr yin"

h/t Dorian Karter

See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.