I've got the following obviously misspelled file:
bla blar blar
When I open it as "bla.txt" and run :setlocal spell
vim rightly points out all three words as misspellings. However, if I mv
the file to bla.js
and open it again, turning on spelling does not highlight anything. It will select spelling mistakes inside of comments, however. Is there a way to enable spell checking of, say, string literals (or everything?)
Files that use syntax highlighting can specify where spell checking should be done
so there's got to be a way.