is vim able to detect in which language a file is written, and then load the correct dictionnary ?

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:23 UTC
Read the original article Hit count: 158

Filed under:
|
|

I am using several languages, and by now I am obliged to indicate vim with which of these the spell check must be done. Is there a way to set up vim so that he automatically detects the correct one ? I remember vaguely that in a previous version of vim, when the spell check was not integrated, this was possible, using the vimspell script. 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 language