Vim typically does a good job of file type detection for syntax highlighting, indenting, etc. But vim will punt on some file extensions (or lack thereof) for example yaml config files or markdown.
Override the filetype in the buffer:
:set ft=markdown
Set the filetype in the file itself
This