nginx.vim 407 B

1234567891011121314151617181920
  1. " Vim indent file
  2. " Language: nginx.conf
  3. " Maintainer: Chris Aumann <me@chr4.org>
  4. " Last Change: 2022 Apr 06
  5. if exists("b:did_indent")
  6. finish
  7. endif
  8. let b:did_indent = 1
  9. setlocal indentexpr=
  10. " cindent actually works for nginx' simple file structure
  11. setlocal cindent
  12. " Just make sure that the comments are not reset as defs would be.
  13. setlocal cinkeys-=0#
  14. let b:undo_indent = "setl inde< cin< cink<"