sponsor Vim development Vim logo Vim Book Ad

spellcheck.vim : spell checker  for vim

 script karma  Rating 51/29, Downloaded by 5357  Comments, bugs, improvements  Vim wiki

created by
matthias veit
 
script type
utility
 
description
This script enables spell checking capabilities known from text
processors:

*SpellCheck: highlights all misspelled words
*Propose: checks word under cursor - giving proposals for correcting
*AddToDictionary: adds word under cursor to dictionary
*SpchkNxt: jumps to next error
*SpchkPrv: jumps to previous error
*SetLanguageTag: which language to use (uk_UK | de_DE ...)
*SpellAutoEnable: enables automatic higlighting of misspelled words
  (this is done via CursorHold)
*SpellAutoDisable: disables automatic check

problems:
-syntax highlighting does not work correctly in every syntax-mode
solution: set syntax=off and then do the spellcheck
-to add a word to the list of known words, the skript has to know
which private dictionary aspell is using (something like
$HOME/.aspell.xxx.pws where xxx depends on the language tag)
the current relation is:
   uk_UK|us_US -> english (.aspell.english.pws)
   de_DE -> de (.aspell.de.pws)
to add entries or change existing ones, there is a little adjustment table.
 
install details
*you need aspell (plus dictionary ofcourse)
*you need a ruby interpreter enabled
*$LANG should be defined (echo $LANG on CLI prompt)

Simply move the skript to your 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
spell.zip 2.1 2002-07-03 6.0 matthias veit After a replacement of a misspelled word jump to the next error (tend to be usefule while in correction mode).
spell.zip 2.0 2002-07-02 6.0 matthias veit replacement of misspelled words via proposals (thanks to Patrick Sundberg),
the language to check can be selected via SetLanguageTag (which takes the
common language tags like uk_UK, de_DE etc) - default is taken from $LANG
spellcheck.vim 1.0 2001-11-01 6.0 matthias veit Initial upload
ip used for rating: 142.132.191.50

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 the maillist. Help Bram help Uganda.
   
Vim at Github