Show Current FileType
:set filetype?
Simple Solution to See Known Types
See this stackexchange.
Type :setfiletype (with a space afterwards), then press Ctrl-d.
See :help cmdline-completion for more on autocompletion in vim's command line.
Set File Type In File Comment
# vi: ft=gitconfig