blob: 63f3f062969ff7c1da47d7caedb2cc94cf1d8c48 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
" Extra configuration for Markdown documents
if &filetype !=# 'markdown' || v:version < 700
finish
endif
" Spellchecking features
if has('spell')
" Spellcheck documents we're actually editing (not just viewing)
if &modifiable && !&readonly
setlocal spell
let b:undo_ftplugin .= '|setlocal spell<'
endif
" Tolerate leading lowercase letters in README.md files, for things like
" headings being filenames
if expand('%:t') ==# 'README.md'
setlocal spellcapcheck=
let b:undo_ftplugin .= '|setlocal spellcapcheck<'
endif
endif
|