blob: 362dfb691f055bf8097c240296b0536da2c42766 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
" Only do this when not yet done for this buffer
if exists('b:did_ftplugin')
finish
endif
let b:did_ftplugin = 1
" Set comment metacharacters
setlocal comments+=fb:- " Dashed lists
setlocal comments+=fb:* " Bulleted lists
setlocal comments+=n:> " Mail quotes
let b:undo_ftplugin = 'setlocal comments<'
" Spellcheck documents we're actually editing (not just viewing)
if has('spell') && &modifiable && !&readonly
setlocal spell
let b:undo_ftplugin .= '|setlocal spell<'
endif
|