vim's current highlighed language

MKo picture MKo · Mar 16, 2011 · Viewed 9.9k times · Source

How to know which programming language is set for highlighting the syntax in vim. I can set the language by "setf" command, but how to get the current language?

Thanks.

Answer

Peter van der Heijden picture Peter van der Heijden · Mar 16, 2011

You can type :set ft? (Note that the question mark is part of the command)