bitbake.vim 583 B

1234567891011121314151617181920212223
  1. " Vim indent file
  2. " Language: BitBake
  3. " Copyright: Copyright (C) 2019 Agilent Technologies, Inc.
  4. " Maintainer: Chris Laplante <chris.laplante@agilent.com>
  5. " License: You may redistribute this under the same terms as Vim itself
  6. if exists("b:did_indent")
  7. finish
  8. endif
  9. runtime! indent/sh.vim
  10. setlocal indentexpr=bitbake#Indent(v:lnum)
  11. setlocal autoindent
  12. setlocal nolisp
  13. setlocal shiftwidth=4
  14. setlocal expandtab
  15. setlocal indentkeys+=<:>,=elif,=except,0=\"
  16. let b:undo_indent .= ' inde< ai< lisp< sw< et< indk<'
  17. let b:did_indent = 1