*:filetype* *:filet* To enable file type detection, use this command in your vimrc: : filetype on Each time a new or existing file is edited, Vim will try to recognize the ...
vimdoc.sourceforge.net