Markdown syntax highlighting and spell check for .md files

2 Points

Florian Beer Florian Beer

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