Vim logo vim online Vim Book Ad

 Tip #152: Spelling checkers for: Dutch, English, German, Hungarian, and Yiddish

 tip karma   Rating 15/6, Viewed by 880 

created:   November 2, 2001 7:10      complexity:   intermediate
author:   Charles E. Campbell, Jr.      as of Vim:   5.7

Under http://www.erols.com/astronaut/vim/index.html#vimlinks_scripts
are links to spelling checkers for Dutch, English, German, Hungarian,
and Yiddish, all based on the original engspchk.vim.  The spelling
checker provides as-you-type spell checking; with vim6.0 it will avoid
checking on partially typed words.

Provided are several maps:

  \et : add  word under cursor into database for just this file
  \es : save word under cursor into database (permanently)
  \en : move cursor to the next     spelling error
  \ep : move cursor to the previous spelling error
  \ea : look for alternative spellings of word under cursor

To use \ea you will need agrep:

  agrep source: ftp://sunsite.unc.edu/pub/Linux/utils/text/agrep-2.04.tar.Z
  agrep Win exe: http://www.tgries.de/agrep

To use the spell checkers just source it in:

  ex.  so engspchk.vim

To read more about it see

  http://www.erols.com/astronaut/vim/index.html#Spelling

 rate this tip  Life Changing Helpful Unfulfilling 

<<an ascii table | Making Parenthesis And Brackets Handling Easier >>

Additional Notes

[email protected], November 2, 2001 7:14
Thomas Koehler has provided a script (using the Bourne shell) which
takes a dictionary (list of words) and merges it with <engspchk.vim>
to create spelling checkers for other languages.  If you do this and
post it, please let me know and I'll add it to my list of links!  Also,
remove the NOSPAM hidden in the email above to get my real email address.
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