VIM - Vi IMproved  -  ISpell and Vim

[ Home - Syntax Files - Rxvt - Dead Keys - Compiling - Ispell - Download ]

Note: Mathieu Clabaut took my script and added on the fly spelling and made some other changes. Instead of using the script here you may want to download his version here http://vim.sourceforge.net/script.php?script_id=465

ISpell and ASpellare spell checker programs that can be used standalone or to generate a list of mispelled words. The macro below uses the latter functionality and then uses the syntax highlighting of vim to show the misspelled word.

Depending on the program you want to use you need to either download vimispell.vim or vimaspell.vim.

By sourcing this script the following mappings get defined:

<F6>
Save the file, run ispell, show the errors and define the mappings used to add words to the dictionary.
<S-F6>
Switch to the next language (as defined in the macro file)
<M-F6>
Remove the error highlighting
<M-i>
Insert word under cursor into dictionary
<M-u>
Insert word under cursor as lowercase into dictionary
<M-a>
Accept word for this session only
<M-/>
Show alternative spellings and let user chose
<M-n>
Find next error
<M-p>
Find previous error
Note that this script runs only if you have sed and awk installed on your system (those utilities are available on most unix systems, but not on windows/dos systems, although there are versions for those systems too).

(C) 1997-2001 Claudio Fleiner