scdoc.vim 577 B

123456789101112131415161718192021222324252627
  1. " scdoc filetype plugin
  2. " Maintainer: Gregory Anders <greg@gpanders.com>
  3. " Last Updated: 2021-08-04
  4. " Only do this when not done yet for this buffer
  5. if exists('b:did_ftplugin')
  6. finish
  7. endif
  8. " Don't load another plugin for this buffer
  9. let b:did_ftplugin = 1
  10. setlocal comments=b:;
  11. setlocal commentstring=;%s
  12. setlocal formatoptions+=t
  13. setlocal noexpandtab
  14. setlocal shiftwidth=0
  15. setlocal softtabstop=0
  16. setlocal textwidth=80
  17. let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<'
  18. if has('conceal')
  19. setlocal conceallevel=2
  20. let b:undo_ftplugin .= ' cole<'
  21. endif