To detect file type use ``` set ft ``` in buffer. You can define your own filetype in .vim/ftdetect directory: ``` au BufRead,BufNewFile *[cC]onffile,*.cf set filetype=conffile ```