Is it possible to have spell checking in vim? No, it’s not. EOP (End Of Post).
I’m joking of course. It is!
How to do it?
The only thing you need to type is:
:set spell spelllang=en
or if you want spell checking for Polish language:
:set spell spelllang=pl
Note: when you set spelllang for language different than English, file with stuff for that language will be downloaded (if one is not already in ~/.vim/spell directory), so vim will prompt you some question like where to save that file (answering with default/only one option worked for me).
And switching off spell checking with:
:set nospell
Useful shortcuts
In normal mode you can use this shortcuts:
s]- going to the next error[s- going to the previous errorzg- adding word to “your dictionary” (special file in ~/.vim/spell/)
And the most useful one:
z=- when you hover on misspelled word and usez=, vim will show you list of suggestions of the correct word