vroom.vim 924 B

123456789101112131415161718192021222324252627282930313233343536
  1. " Vim filetype plugin file
  2. " Language: Vroom (vim testing and executable documentation)
  3. " Maintainer: David Barnett (https://github.com/google/vim-ft-vroom)
  4. " Last Change: 2014 Jul 23
  5. if exists('b:did_ftplugin')
  6. finish
  7. endif
  8. let b:did_ftplugin = 1
  9. let s:cpo_save = &cpo
  10. set cpo-=C
  11. let b:undo_ftplugin = 'setlocal formatoptions< shiftwidth< softtabstop<' .
  12. \ ' expandtab< iskeyword< comments< commentstring<'
  13. setlocal formatoptions-=t
  14. " The vroom interpreter doesn't accept anything but 2-space indent.
  15. setlocal shiftwidth=2
  16. setlocal softtabstop=2
  17. setlocal expandtab
  18. " To allow tag lookup and autocomplete for whole autoload functions, '#' must be
  19. " a keyword character. This also conforms to the behavior of ftplugin/vim.vim.
  20. setlocal iskeyword+=#
  21. " Vroom files have no comments (text is inert documentation unless indented).
  22. setlocal comments=
  23. setlocal commentstring=
  24. let &cpo = s:cpo_save
  25. unlet s:cpo_save