Commit 0dbfb447 authored by Evan Miller's avatar Evan Miller
Browse files

Contrib: add vim scripts to contrib/ directory.

I've been maintaining these scripts independently for a while now, even though
I'm no longer active in the community. Seems to me that contrib/ is a good
long-term home for the scripts.
parents
Loading
Loading
Loading
Loading

ftdetect/nginx.vim

0 → 100644
+4 −0
Original line number Diff line number Diff line
au BufRead,BufNewFile *.nginx set ft=nginx
au BufRead,BufNewFile */etc/nginx/* set ft=nginx
au BufRead,BufNewFile */usr/local/nginx/conf/* set ft=nginx
au BufRead,BufNewFile nginx.conf set ft=nginx

indent/nginx.vim

0 → 100644
+11 −0
Original line number Diff line number Diff line
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#

syntax/nginx.vim

0 → 100644
+0 −0

File added.

Preview size limit exceeded, changes collapsed.