Enable spellcheck for markdown files in vim

If you want to enable spellchecking for only certain file types, like Markdown files, put the following line in your .vimrc:

" Turn spellcheck on for markdown files.
autocmd BufNewFile,BufRead *.md set spell

You can apply this regex to match other extensions as well, go crazy.

← Read all articles