yaml.vim 628 B

1234567891011121314151617181920212223242526
  1. " Vim filetype plugin file
  2. " Language: YAML (YAML Ain't Markup Language)
  3. " Previous Maintainer: Nikolai Weibull <now@bitwi.se> (inactive)
  4. " Last Change: 2020 Mar 02
  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&vim
  11. let b:undo_ftplugin = "setl com< cms< et< fo<"
  12. setlocal comments=:# commentstring=#\ %s expandtab
  13. setlocal formatoptions-=t formatoptions+=croql
  14. if !exists("g:yaml_recommended_style") || g:yaml_recommended_style != 0
  15. let b:undo_ftplugin ..= " sw< sts<"
  16. setlocal shiftwidth=2 softtabstop=2
  17. endif
  18. let &cpo = s:cpo_save
  19. unlet s:cpo_save