]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/vim/indent/nginx.vim
vim: add nginx syntax highlighting
[config/dotfiles.git] / vim / vim / indent / nginx.vim
diff --git a/vim/vim/indent/nginx.vim b/vim/vim/indent/nginx.vim
new file mode 100644 (file)
index 0000000..8601366
--- /dev/null
@@ -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#