aap.vim 716 B

1234567891011121314151617181920212223242526
  1. " Vim filetype plugin file
  2. " Language: Aap recipe
  3. " Maintainer: Bram Moolenaar <Bram@vim.org>
  4. " Last Change: 2013 Apr 05
  5. " Only do this when not done yet for this buffer
  6. if exists("b:did_ftplugin")
  7. finish
  8. endif
  9. " Don't load another plugin for this buffer
  10. let b:did_ftplugin = 1
  11. " Reset 'formatoptions', 'comments' and 'expandtab' to undo this plugin.
  12. let b:undo_ftplugin = "setl fo< com< et<"
  13. " Set 'formatoptions' to break comment lines but not other lines,
  14. " and insert the comment leader when hitting <CR> or using "o".
  15. setlocal fo-=t fo+=croql
  16. " Set 'comments' to format dashed lists in comments.
  17. setlocal comments=s:#\ -,m:#\ \ ,e:#,n:#,fb:-
  18. " Expand tabs to spaces to avoid trouble.
  19. setlocal expandtab