10 years ago
Vim doesn't recognize *.md
files as Markdown documents automatically. With this snippet your Vim will set the correct syntax highlighting and activate spell checking whenever a file with the extension .md
is loaded.
autocmd BufNewFile,BufRead *.md set ft=markdown spell