aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/markdown.vim
blob: d13bba8fb2c56148e3fb79f1a8b2341117aef212 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
" Extra configuration for Markdown documents
if &filetype !=# 'markdown' || v:version < 700
  finish
endif

" Spellcheck documents we're actually editing (not just viewing)
if has('spell') && &modifiable && !&readonly
  setlocal spell
  let b:undo_ftplugin .= '|setlocal spell<'
endif