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

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