Search code examples
vim

Find out what filetype is loaded in Vim


As soon as I load any file in Vim, it'll try to detect the file and color-highlight it if possible.

I want to know a Vim command that will tell me which ftplugin or filetype plugin / filetype Vim considers to highlight the file.


Solution

  • :set filetype?