Add YAML header detection.

Using my BufReadPost hook, search for the YAML header and if one is
present, set filetype to yaml.

Also minor tweaks and fixed a typo in the hook function name.