0
0
mirror of https://github.com/vim/vim.git synced 2025-07-04 23:07:33 -04:00
vim/runtime/indent/nginx.vim

20 lines
407 B
VimL
Raw Normal View History

2021-10-04 21:32:54 +01:00
" Vim indent file
" Language: nginx.conf
" Maintainer: Chris Aumann <me@chr4.org>
2022-04-08 17:45:08 +01:00
" Last Change: 2022 Apr 06
2021-10-04 21:32:54 +01:00
if exists("b:did_indent")
finish
endif
let b:did_indent = 1
setlocal indentexpr=
" cindent actually works for nginx' simple file structure
setlocal cindent
" Just make sure that the comments are not reset as defs would be.
setlocal cinkeys-=0#
2022-04-08 17:45:08 +01:00
let b:undo_indent = "setl inde< cin< cink<"