scdoc.vim 613 B

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