Fixing Typos with vi Abbreviations
Abbreviations () are a handy way to fix common typos. Try a few abbreviations like this:
ab teh the ab taht that
Any time you find yourself transposing letters or saying, "Darn, I always misspell that word," add an abbreviation to exrc. (Of course, you do have to worry about performance if the file gets too big.)
You can do the same thing to enforce conventions. For example, we type command names in italics, so creating a list of abbreviations like:
ab vi \fIvi\fP
saves us from having to type lots of troff () codes.
(This abbreviation is not recursive () because the vi
is sandwiched between other alphanumeric characters, not standing alone as a word.)
- TOR