Skip to content

Instantly share code, notes, and snippets.

@vaclavbohac
Created May 17, 2011 10:37
Show Gist options
  • Select an option

  • Save vaclavbohac/976274 to your computer and use it in GitHub Desktop.

Select an option

Save vaclavbohac/976274 to your computer and use it in GitHub Desktop.
Detecting latte syntax in vim.
" ~/.vim/filetype.vim
" Detecting latte in vim.
if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
au! BufRead,BufNewFile *.latte setfiletype smarty
au! BufRead,BufNewFile *.phtml setfiletype smarty
au! BufRead,BufNewFile *.neon setfiletype yaml
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment