Modeline magic
At the end of a file use a comment like # vim: ft=zsh.
# vim: ft=zsh
Using this files can indicate their syntax when no extension/shebang is present.