scdoc.vim (613B)
1 " scdoc filetype plugin 2 " 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 6 7 " Only do this when not done yet for this buffer 8 if exists('b:did_ftplugin') 9 finish 10 endif 11 12 " Don't load another plugin for this buffer 13 let b:did_ftplugin = 1 14 15 setlocal comments=b:; 16 setlocal commentstring=;\ %s 17 setlocal formatoptions+=t 18 setlocal noexpandtab 19 setlocal shiftwidth=0 20 setlocal softtabstop=0 21 setlocal textwidth=80 22 23 let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<'