Vim logo vim online Vim Book Ad

engspchk : English spelling checker, works with LaTeX.

 script karma  Rating 101/31, Downloaded by 809

created by
Charles Campbell
 
script type
syntax
 
description
There are a fair number of ispell/aspell based spelling checkers out there --
but engspchk isn't one of them.  The engspchk source uses Vim's native syntax
highlighting to catch spelling errors.  An optional external program, agrep,
may be used to suggest alternative spellings. With the optional Webster's
1913 dictionary, <engspchk.vim> now provides over 187192 words!

Engspchk is no longer English-only: it supports multiple languages.  You can
tell it what language (dictionary) to use by either renaming it (ex.
engspchk.vim -> frspchk.vim for French) or by specifying the variable
g:spchklang (ex. let g:spchklang="ger" for German).  See
http://www.erols.com/astronaut/vim/index.html#vimlinks_scripts for some
dictionaries: currently French, German, and Spanish are available.

The engspchk s/w includes maps for jumping to the next and preceding spelling
errors, alternative spellings, and for saving words either permanently in a
custom dictionary or just for the current session.

To check your spelling, simply apply the English Check map:

    \ec

and your spelling errors will show up highlighted in white-on-red.  If you want
to change languages, just set g:spchklang appropriately and \ec will load that
language's dictionary.  The backslash is actually using <mapleader>, so you
can customize the backslash to whatever you want.

It will work with some cooperating syntax files to check out spelling in
comments, including:

    amiga bib cpp dcl     ksh   sh  vim
    bash  c   csh fortran latex tex

If your favorite computer language isn't on that list, perhaps you can talk
that language's maintainer into making it engspchk compatible.

More Features:

v27: New features for the Vim-based spelling checker!

    * Maps to remove words from the user dictionary
      (\eT, \eS).

    * If g:spchk_autonext exists, then \et, \es, and
      \ea (if a word is selected) will automatically
      do a \en jump to the next spelling error.

    * \en and \ep will now examine words inside folds,
      opening the fold as necessary to display spelling
      errors.

v23:
    Can handle English, French, German, Spanish, Dutch,
    Hungarian -- just set up a dictionary and set a
    g:spchklang variable!  Native vim code, no external
    programs necessary

v19:
    Now contains: engspchk.vim engspchk.dict
    engspchk.wb engspchk.txt Over 187192 words!
    non-English support menus, documentation, English
    punctuation checking (g:spchkpunc)


Alternative Spelling Checkers
    SpellChecker - Ajit Thakkar        - syntax    - vimscript#499
    vimspell     - Mathieu Clabaut     - [ia]spell - vimscript#465
    spellcheck   - Matthias Veit       - ispell    - vimscript#131
    spell        - Yegappan Lakshmanan - spell     - vimscript#232
    vim-spell    - Luc Hermite         - [ia]spell - vimscript#135


Thank you for ranking engspchk!
 
install details
*) gunzip engspchk.tar.gz
   cd $HOME/.vim   (or cd ...\vimfiles)
   tar -oxvf engspchk.tar
1) Put <engspchk.vim> into your .vim/plugin or _vimfiles/plugin directory
2) Put <engspchk.dict> and <engspchk.wb> into some directory

2) Set up an environment variable called
CVIMSYN which points to the directory
used in step (1).  Your custom dictionary will appear here too if you
save any words. -or- specify the path with
  let g:cvimsyn="..path.."
into your <.vimrc>

3) Enable help in vim
   :helptags ~/.vim/doc        (unix)
   :helptags ...vimfiles\doc   (windows)

4) Read help (:help engspchk), especially if you'd also like to have
agrep (which enables suggesting alternative spellings)
 

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
engspchk.tar.gz 28 26-Nov-2002 6.0 Charles Campbell engspchk now searches even harder for its dictionaries:

If        g:cvimsyn exists, it is tried
Otherwise $CVIMSYN is tried
Otherwise each path on the runtimepath is tried
Otherwise quit with an error message

"Trying" involves checking if the spelling dictionary is
filereadable(); if not, then if filereadable(expand())
works.  If a combination works, that path is set into
g:cvimsyn.

Support for v5.x of vim has now been dropped.
engspchk.tar.gz 2.09 30-Jan-2002 5.7 Charles Campbell 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