1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00
Files
til/vim/preventing-typos-with-abbreviations.md
2015-04-20 22:34:37 -05:00

15 lines
459 B
Markdown

# Preventing Typos with Abbreviations
Are you are prone to mistyping *the* as *teh* or *function* as *funciton*?
You can add one-line abbreviations to your `.vimrc` file to auto-correct
these mistakes for you.
```
abbr teh the
abbr funciton function
```
By adding these (or others) to your vim configuration, whenever you type
the misspelled version, vim will know to instantly replace it with the
correct version. This can be handy, but use it sparingly.