Bram Moolenaar | 6aa5729 | 2021-08-14 21:25:52 +0200 | [diff] [blame] | 1 | " scdoc filetype plugin |
Bram Moolenaar | 3f32a5f | 2022-05-12 20:34:15 +0100 | [diff] [blame] | 2 | " Maintainer: Gregory Anders <contact@gpanders.com> |
| 3 | " Last Updated: 2022-05-09 |
| 4 | " Upstream: https://github.com/gpanders/vim-scdoc |
Bram Moolenaar | 6aa5729 | 2021-08-14 21:25:52 +0200 | [diff] [blame] | 5 | |
| 6 | " Only do this when not done yet for this buffer |
| 7 | if exists('b:did_ftplugin') |
| 8 | finish |
| 9 | endif |
| 10 | |
| 11 | " Don't load another plugin for this buffer |
| 12 | let b:did_ftplugin = 1 |
| 13 | |
| 14 | setlocal comments=b:; |
| 15 | setlocal commentstring=;%s |
| 16 | setlocal formatoptions+=t |
| 17 | setlocal noexpandtab |
| 18 | setlocal shiftwidth=0 |
| 19 | setlocal softtabstop=0 |
| 20 | setlocal textwidth=80 |
| 21 | |
| 22 | let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<' |