aboutsummaryrefslogtreecommitdiff
path: root/vim/after/ftplugin/text.vim
blob: cda2891c65f6e3ad1d9827145a1258bc3494bd89 (plain)
1
2
3
4
5
" Spellcheck documents we're actually editing (not just viewing)
if has('spell') && &modifiable && !&readonly
  setlocal spell
  let b:undo_ftplugin .= '|setlocal spell<'
endif