Back to TIL
productivity

Vim auto correct

Most people have words they misspell nearly every time. Vim can help by (ab)using its text-expand feature. Add this to your ~/.vimrc:

iab teh the

From now on, typing teh in insert mode will automagically expand to the. (iab is shorthand for iabbrev)

There’s also autocorrect.vim if you want a community-driven database of common typos.