Vim logo vim online Vim Book Ad

vimspell : ispell or aspell based spell checker with fly-spelling

 script karma  Rating 71/26, Downloaded by 839

created by
Mathieu Clabaut
 
script type
utility
 
description
This script is based on Claudio Fleiner's spell checker and uses ispell (or aspell) and
awk to highlight spelling errors, and provides mappings to correct them, with
suggestions.

It is possible to set up the script to do automatic spellchecking (à la
word --- the current visible window is checked, and errors are highlighted as soon
as the cursor is idle for 1 second).
For that, either redefine the spell_auto_type variable (let spell_auto_type="tex,doc,mail")
or add the following line in the ftplugin script associated with the filetypes
for which you would like such a feature (~/.vim/ftplugin/text.vim, for example) :
if  !(&readonly;) && exists("loaded_vimspell")
   :SpellAutoEnable
endif
    
(For the example to work, be sure that "text" is a defined filetype ---  :help new-filetype)

Much more documentation on all options can be found at the beginning of the script.

Feedback is welcome ....
 
install details
Copy vimspell.vim into your ~/.vim/plugin directory
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vimspell.vim 1.28 11-Dec-2002 6.0 Mathieu Clabaut Small patch to 'spell_auto_type' usage (all buffer with no filetype were spell
checked by default).
Add credits.
vimspell.vim 1.26 11-Dec-2002 6.0 Mathieu Clabaut Correct spell_auto_type behaviour. There was a bug which made AutoSpell enable for all file types.
vimspell.vim 1.25 11-Dec-2002 6.0 Mathieu Clabaut Correct bug with aspell (add word to local dictionary didn't work), kindly reported by Andrew McCarthy <[email protected]> and Alberto Ornaghi <[email protected]>
vimspell.vim 1.23 10-Dec-2002 6.0 Mathieu Clabaut Add (requested) documentation about setting up on-the-fly spell check,
add spell_auto_type and spell_no_readonly variables to tune when on-the-fly
spell checking is done.
Still on bug about highlighting (see TODO list in documentation section), if someone wants to tackle it....
vimspell.vim 1.22 09-Dec-2002 6.0 Mathieu Clabaut Bug correction : Spellcheck on the fly for the visible window now preserve
informations from previous global spellcheck (<Leader>ss).
Dictionnaries are rescan whenever the spellchecker is changed.
vimspell.vim 1.20 02-Dec-2002 6.0 Mathieu Clabaut Documentation and minor modifications.
Add  filetype and spell checker dependant options (support by default tex,html,sgml, and nroff or email modes).
English corrections.
Make several variables bufferwise (language, spell_executable,...)
Add functions and menu to change spellchecker
Correct bugs.
Add a better dictionaries detection for aspell.
vimspell.vim 1.17 27-Nov-2002 6.0 Mathieu Clabaut Correct a bug when applying suggestion on a word at the beginning of the buffer.
Thanks to Markus Braun.
vimspell.vim 1.16 27-Nov-2002 6.0 Mathieu Clabaut Add credits,
Use update instead of write,
Replace <ESC> default mapping by <Leader>
Correct nasty bug (SpellIgnore)
Improve menus.
Improve dictionnaries auto-detection.
vimspell.vim 1.14 25-Nov-2002 6.0 Mathieu Clabaut Much more parametrization (see documentation at the beginning of the script).
Use aspell or ispell.
Use as many language as available. Auto detect availables dictionnaries.
More functionnal menu.
Bug correction.
vimspell.vim 1.13 07-Nov-2002 6.0 Mathieu Clabaut Comments and a bit of documentation.
Some cleaning.

need some more parametrization and cleaning.
vimspell.vim 1.12 30-Oct-2002 6.0 Mathieu Clabaut Initial upload

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to [email protected] after searching the archive. Help Bram help Uganda.
SourceForge Logo