summaryrefslogtreecommitdiffstats
path: root/indent/nginx.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2015-12-06 11:45:35 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2015-12-06 11:45:35 +0100
commitf58692a6410c6ce13de0eb6f03ab7e918ed7d1e5 (patch)
tree8aa24962d0b2ef52ddd43d80159cc3896fb7a647 /indent/nginx.vim
parent0dc7696c89516332ae577e40c898f8a1d1afb71d (diff)
downloadvim-polyglot-f58692a6410c6ce13de0eb6f03ab7e918ed7d1e5.tar.gz
vim-polyglot-f58692a6410c6ce13de0eb6f03ab7e918ed7d1e5.zip
Update nginx source to upstream, closes #90
Diffstat (limited to 'indent/nginx.vim')
-rw-r--r--indent/nginx.vim15
1 files changed, 15 insertions, 0 deletions
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