mirror of
https://github.com/jbranchaud/til
synced 2026-01-10 02:28:02 +00:00
Add Preventing Typos with Abbreviations as a vim til.
This commit is contained in:
14
vim/preventing-typos-with-abbreviations.md
Normal file
14
vim/preventing-typos-with-abbreviations.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# 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 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.
|
||||
Reference in New Issue
Block a user