October 2015
Intermediate to advanced
356 pages
7h 54m
English
| Tip 121 | Use Alternate Spelling Dictionaries |
Out of the box, Vim’s spell checker supports regional variations of English. Find out how to specify the region and how to obtain spelling dictionaries for other languages.
When we enable Vim’s spell checker, it compares words against an English dictionary by default. We can change this by tweaking the ‘spelllang’ option (see 'spelllang'ⓘ). This isn’t a global setting; ‘spelllang’ is always local to the buffer. That means it’s possible to work simultaneously on two or more documents and use a different spell file for each—handy if you’re bilingual.
Vim’s spell file supports several regional variations of English. The default spelllang=en setting will permit ...