Adding the following commands to your .vimrc should do the trick (unless you use CTRL + C to exit into insert mode):
autocmd InsertEnter * setlocal spell autocmd InsertLeave * setlocal nospell
Since this is a great trick, I added these lines to my .vimrc !
if you want to get rid of the highlighted words, you can add them to the "good" list of words by hovering over them and typing zg . See :help spell for more information
Xavier T.
source share