blob: 2e98e647f49e2cd7e8ef2a93850eb607fffa4d57 [file] [log] [blame]
Bram Moolenaar6aa57292021-08-14 21:25:52 +02001" scdoc filetype plugin
2" Maintainer: Gregory Anders <greg@gpanders.com>
3" Last Updated: 2021-08-04
4
5" Only do this when not done yet for this buffer
6if exists('b:did_ftplugin')
7 finish
8endif
9
10" Don't load another plugin for this buffer
11let b:did_ftplugin = 1
12
13setlocal comments=b:;
14setlocal commentstring=;%s
15setlocal formatoptions+=t
16setlocal noexpandtab
17setlocal shiftwidth=0
18setlocal softtabstop=0
19setlocal textwidth=80
20
21let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<'
22
23if has('conceal')
24 setlocal conceallevel=2
25 let b:undo_ftplugin .= ' cole<'
26endif