Last Updated: February 25, 2016
· Chip Castle

Vim can autocorrect misspellings and typos

Do you use vim?

Do you misspell certain words or make typos on a regular basis?

For example, maybe you type teh when you intended to type the ?

Well, vim has a build-in feature for handling this, so just add this to your .vimrc:

iabbrev teh the

This tells vim to use the iabbrev feature to automatically correct the word teh with the corrected form of the word the.

One downside of this approach is adding a lot of these definitions can clutter up your .vimrc file.

As an alternative, there is a vim plugin called fat-finger which supports over 4,000 common misspellings and typos, which can be found at:

For more UNIX tips, please check out
Learning the UNIX Command Line.