spf13 / spf13-vim

The ultimate vim distribution
http://vim.spf13.com
Apache License 2.0
15.56k stars 3.63k forks source link

C and C++ spell check shouldn't highlight code (only comments) #850

Open rjmccabe3701 opened 8 years ago

rjmccabe3701 commented 8 years ago

After an update of spf13-vim, I noticed that any code inside braces is being highlighted for spelling mistakes. See the image: image

This can be fixed if I do a

:syntax enable

image

But this fix should be the default.

vincentvangaogh commented 8 years ago

I have the same issue. Thanks for the tip. But is there a way that automatically fixes this when opening Vim? Like add syntax enable or something similar to somewhere, say, .vimrc.local? Just new to Vim.

rjmccabe3701 commented 8 years ago

Not that I know of, i just do :syntax on when i start vim. I tried putting something similar in my .vimrc.local, but it didn't take. I didn't have the time to dig into why not.