Reputation: 5048
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.
Upvotes: 41
Views: 11032
Reputation: 11808
You can type :set ft?
(Note that the question mark is part of the command)
Upvotes: 52
Reputation: 79243
try :echo &filetype
. You can also put %{&filetype}
in the statusline setting.
Also see this vim tip
Upvotes: 10