blob: 8225e437a8fae7dbdb0ce0653040d1623b0e70da [file] [log] [blame]
Bram Moolenaar6aa57292021-08-14 21:25:52 +02001" scdoc filetype plugin
Riley Bruins0a083062024-06-03 20:40:45 +02002" Maintainer: Gregory Anders <contact@gpanders.com>
3" Last Updated: 2022 May 09
4" 2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')
5" Upstream: https://github.com/gpanders/vim-scdoc
Bram Moolenaar6aa57292021-08-14 21:25:52 +02006
7" Only do this when not done yet for this buffer
8if exists('b:did_ftplugin')
9 finish
10endif
11
12" Don't load another plugin for this buffer
13let b:did_ftplugin = 1
14
15setlocal comments=b:;
Riley Bruins0a083062024-06-03 20:40:45 +020016setlocal commentstring=;\ %s
Bram Moolenaar6aa57292021-08-14 21:25:52 +020017setlocal formatoptions+=t
18setlocal noexpandtab
19setlocal shiftwidth=0
20setlocal softtabstop=0
21setlocal textwidth=80
22
23let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<'