bitbake.vim 727 B

123456789101112131415161718192021222324
  1. " Vim filetype detection file
  2. " Language: BitBake
  3. " Author: Ricardo Salveti <rsalveti@rsalveti.net>
  4. " Copyright: Copyright (C) 2008 Ricardo Salveti <rsalveti@rsalveti.net>
  5. " Licence: You may redistribute this under the same terms as Vim itself
  6. "
  7. " This sets up the syntax highlighting for BitBake files, like .bb, .bbclass and .inc
  8. if &compatible || version < 600 || exists("b:loaded_bitbake_plugin")
  9. finish
  10. endif
  11. " .bb, .bbappend and .bbclass
  12. au BufNewFile,BufRead *.{bb,bbappend,bbclass} set filetype=bitbake
  13. " .inc
  14. au BufNewFile,BufRead *.inc set filetype=bitbake
  15. " .conf
  16. au BufNewFile,BufRead *.conf
  17. \ if (match(expand("%:p:h"), "conf") > 0) |
  18. \ set filetype=bitbake |
  19. \ endif