1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add Preventing Typos with Abbreviations as a vim til.

This commit is contained in:
jbranchaud
2015-04-20 08:30:19 -05:00
parent 4082635be4
commit 8adb73f8fa
2 changed files with 15 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [NETRW Listing Styles](vim/netrw-listing-styles.md) - [NETRW Listing Styles](vim/netrw-listing-styles.md)
- [Open an Unnamed Buffer](vim/open-an-unnamed-buffer.md) - [Open an Unnamed Buffer](vim/open-an-unnamed-buffer.md)
- [Opening a URL](vim/opening-a-url.md) - [Opening a URL](vim/opening-a-url.md)
- [Preventing Typos with Abbreviations](vim/preventing-typos-with-abbreviations.md)
- [Previous Buffer](vim/previous-buffer.md) - [Previous Buffer](vim/previous-buffer.md)
- [Previous Visual Selection](vim/previous-visual-selection.md) - [Previous Visual Selection](vim/previous-visual-selection.md)
- [Quick File Info](vim/quick-file-info.md) - [Quick File Info](vim/quick-file-info.md)

View 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.