25619
|
1 " 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
|
|
6 if exists('b:did_ftplugin')
|
|
7 finish
|
|
8 endif
|
|
9
|
|
10 " Don't load another plugin for this buffer
|
|
11 let b:did_ftplugin = 1
|
|
12
|
|
13 setlocal comments=b:;
|
|
14 setlocal commentstring=;%s
|
|
15 setlocal formatoptions+=t
|
|
16 setlocal noexpandtab
|
|
17 setlocal shiftwidth=0
|
|
18 setlocal softtabstop=0
|
|
19 setlocal textwidth=80
|
|
20
|
|
21 let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<'
|
|
22
|
|
23 if has('conceal')
|
|
24 setlocal conceallevel=2
|
|
25 let b:undo_ftplugin .= ' cole<'
|
|
26 endif
|