Commit d13a4eac authored by Chris's avatar Chris

Add NGINX syntax highlighting, filetype detection, and indentation options

parent 704e8386
autocmd BufRead,BufNewFile *.nginx set filetype=nginx
autocmd BufRead,BufNewFile */etc/nginx/* set filetype=nginx
autocmd BufRead,BufNewFile */usr/local/nginx/conf/* set filetype=nginx
autocmd BufRead,BufNewFile nginx.conf set filetype=nginx
setlocal commentstring=#%s
" This file came from github.com/nginx/nginx
" https://github.com/nginx/nginx/blob/555dc61b/contrib/vim/indent/nginx.vim
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#
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment