Is vim able to detect the natural language of a file, then load the correct dictionary ?

Posted by Niels on Stack Overflow See other posts from Stack Overflow or by Niels
Published on 2010-03-28T08:12:49Z Indexed on 2010/03/28 8:33 UTC
Read the original article Hit count: 135

I am using several languages, and currently I am obliged to indicate to vim with which of these the spell check must be done. Is there a way to set up vim so that it automatically detects the correct one? I vaguely remember that in a previous version of vim, when the spell check was not integrated, the vimspell script made this possible.

It would be even better if this could apply not only to a file but also to a portion of a file, since I frequently mix several languages in a single file. Of course, I would like to avoid to load several dictionaries simultaneously.

© Stack Overflow or respective owner

Related posts about spellchecking

Related posts about vim