SpellChecker : Spell check text including LaTeX documents
script karma |
Rating 53/14,
Downloaded by 157 |
created by |
Ajit Thakkar |
|
script type |
utility |
|
description |
SpellChecker.vim is a plugin that uses Vim's syntax highlighting facility to help spot spelling errors. The lexicon consists of approximately 53,700 English words, including about 2,700 proper names and 50 acronyms. Three dialects are supported: American (US), British (UK), and Canadian (CA). Misspellings are highlighted as errors, and spellings corresponding to a dialect different from the selected one are highlighted as todo items.
Commands, key mappings and menus are provided for turning spell checking on and off, for moving through the errors, changing dialects, adding words to the permanent user and project-specific dictionaries, and for accepting words for the current document only.
SpellChecker was inspired by Charles Campbell's engspchk. SpellChecker uses several ideas but very little unmodified code from engspchk. Both work with vim's syntax facility. Both highlight misspelled words as errors. The following comments may help you to decide whether to use SpellChecker or engspchk.
A unique feature of SpellChecker is that it highlights spellings corresponding to a dialect different from the one selected. This helps to ensure that the selected dialect has been used consistently throughout a document.
Another feature new to SpellChecker is project-specific dictionaries. These are dictionaries that are additional to all others, including the global user's dictionary. A project-specific dictionary is used only when checking documents that reside in the same directory as that dictionary. For example, such dictionaries can be useful if a document introduces acronyms or abbreviations specific to that document.
A different and smaller lexicon is used by SpellChecker than by engspchk. This means that esoteric words may be marked as errors by SpellChecker even though they are perfectly correct. On the other hand, the presence of fewer rare words in the lexicon means that spelling errors are less likely to be mistaken for arcane words. For example, if you type "ort he" instead of "or the", SpellChecker will flag an error whereas engspchk won't because "ort" is a rarely-used word (meaning morsel) that is in the engspchk lexicon. A side-effect of the smaller lexicon is that SpellChecker loads faster than engspchk.
At this time, SpellChecker does not incorporate a scheme to offer alternative spellings. It may later.
|
|
install details |
1. Unzip Spellchecker.zip, preserving directory structure, into either $HOME/.vim for unix or $HOME\vimfiles for MSWindows. Make sure that Spellchecker.vim is in the plugin subdirectory, the english.vim, english_dialects.vim, and english_special.vim files are in the dict subdirectory, and spellchecker.txt is in the doc subdirectory of $HOME/.vim or $HOME\vimfiles as the case may be. Do ":help add-plugin", ":help add-global-plugin" and ":help runtimepath" for more details about Vim plugins.
2. Do
:helptags ~/.vim/doc (for unix)
or
:helptags ~\vimfiles\doc (for MSWindows)
to rebuild the tags file. Do ":help add-local-help" for more details.
3. Restart vim
4. Do :help SpellChecker or otherwise read spellchecker.txt to learn about usage and customization.
|
|
script versions (upload new version)
Click on the package to download.
|