Getting vim to recognize a new file extension as an existing file type
Friday, August 29th, 2008For global configuration, add this to /etc/vim/filetype.vim, for just you, add to ~/.vim/filetype.vim :
if exists("did_load_filetypes")
finish
endif
" add .ctp and .thml as recognized php file extensions (good for CakePHP)
augroup filetypedetect
au! BufNewFile,BufRead *.ctp,*.thml setf php
augroup END
In this example, I’m getting vim to recognize .ctp and .thtml […]

