1 " TODO: #version appears exactly once in the file, before any non-whitespace
2 " (i.e. possibly after a length comment). Checking only the first 10 lines
3 " is an incorrect hack.
4 for item in getline(1,10)
5 if item =~ "#version 400"
6 execute ':set syntax=glsl400'
9 if item =~ "#version 330"
10 execute ':set syntax=glsl330'