Skip to content

Commit

Permalink
Spell-check Markdown by type, not file extension
Browse files Browse the repository at this point in the history
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
Dan Croak committed Nov 23, 2013
1 parent fd9d635 commit 4f5a2ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4f5a2ed

Please sign in to comment.