When I was writing a blog post in Vim, I wanted to turn on spellcheck and change a few other settings so I learned that I could use an autocommand to apply settings based on the open file type.
autocmd FileType markdown setlocal signcolumn=no spell textwidth=80 colorcolumn=+1