Skip to content

Instantly share code, notes, and snippets.

@otukutun
Created April 2, 2014 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otukutun/9945338 to your computer and use it in GitHub Desktop.
Save otukutun/9945338 to your computer and use it in GitHub Desktop.
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
au BufRead,BufNewFile *.py setfiletype python
au BufRead,BufNewFile *.php,ctp :set dictionary=~/.vim/dict/php.dict filetype=php
au BufRead,BufNewFile *.twig set filetype=htmljinja
au BufRead,BufNewFile *.less set filetype=css
au BufRead,BufNewFile *.html set filetype=html
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment