MKo
MKo

Reputation: 5048

vim's current highlighed language

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

Answers (2)

heijp06
heijp06

Reputation: 11808

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

Upvotes: 52

Benoit
Benoit

Reputation: 79243

try :echo &filetype. You can also put %{&filetype} in the statusline setting.

Also see this vim tip

Upvotes: 10

Related Questions