From f58692a6410c6ce13de0eb6f03ab7e918ed7d1e5 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 6 Dec 2015 11:45:35 +0100 Subject: Update nginx source to upstream, closes #90 --- indent/nginx.vim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 indent/nginx.vim (limited to 'indent/nginx.vim') diff --git a/indent/nginx.vim b/indent/nginx.vim new file mode 100644 index 00000000..27607da6 --- /dev/null +++ b/indent/nginx.vim @@ -0,0 +1,15 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1 + +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# + +endif -- cgit v1.2.3