aboutsummaryrefslogtreecommitdiffstats
path: root/app/nginx/contrib/vim/indent/nginx.vim
diff options
context:
space:
mode:
Diffstat (limited to 'app/nginx/contrib/vim/indent/nginx.vim')
-rw-r--r--app/nginx/contrib/vim/indent/nginx.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/nginx/contrib/vim/indent/nginx.vim b/app/nginx/contrib/vim/indent/nginx.vim
new file mode 100644
index 0000000..8601366
--- /dev/null
+++ b/app/nginx/contrib/vim/indent/nginx.vim
@@ -0,0 +1,11 @@
+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#