When working with HTML with embedded Javascript, the syntax highlighting often gets out of sync. If I tell vim to always sync from the beginning of the file, navigation is too slow. I was wondering if there is a way to tell vim on command to sync from the beginning of the file. As in, “ok this is the code I’m working on, make it look right”.
Thanks
I reckon this would work:
but maybe you omitted some conditions/criteria from the question, why this is not eligible?
Alternatively, I suppose
should have a similar effect on most source files (hopefully for you!).