Shortly after starting a new project, I realized that I was not getting the correct syntax highlighting for my RSpec files.
At first I thought it was only because of my specific .vimrc project, which are loaded via set exrc . But even after I deleted it, it did not help.
I also thought that the problem is in the spec file itself, that it is not recognized as RSpec, so I took the file from another project, copied it and still did not get the highlight properly.

This is the same file open in two different places. One of them is in the original project, where it stands out, and on the right is the copied version.
The same thing happens for all RSpec files in this one project, but it seems to work everywhere.
Here is my ~ / .vimrc , but I donβt think it matters, because I have never had this problem before, only in this particular project.
source share