Permalink
Browse files

Spell-check Markdown by type, not file extension

Previously, only `*.md` files would get spell-checking. This change adds
`*.markdown` and decouples Markdown spell-checking by file extension.

http://robots.thoughtbot.com/vim-spell-checking/
  • Loading branch information...
1 parent fd9d635 commit 4f5a2edc336970b8a1c7eded3934182810abeb20 @croaky croaky committed Nov 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 vimrc
View
2 vimrc
@@ -48,7 +48,7 @@ augroup vimrcEx
autocmd BufRead,BufNewFile *.md set filetype=markdown
" Enable spellchecking for Markdown
- autocmd BufRead,BufNewFile *.md setlocal spell
+ autocmd FileType markdown setlocal spell
" Automatically wrap at 80 characters for Markdown
autocmd BufRead,BufNewFile *.md setlocal textwidth=80

0 comments on commit 4f5a2ed

Please sign in to comment.