diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2015-12-06 11:45:35 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2015-12-06 11:45:35 +0100 |
commit | f58692a6410c6ce13de0eb6f03ab7e918ed7d1e5 (patch) | |
tree | 8aa24962d0b2ef52ddd43d80159cc3896fb7a647 /ftdetect | |
parent | 0dc7696c89516332ae577e40c898f8a1d1afb71d (diff) | |
download | vim-polyglot-f58692a6410c6ce13de0eb6f03ab7e918ed7d1e5.tar.gz vim-polyglot-f58692a6410c6ce13de0eb6f03ab7e918ed7d1e5.zip |
Update nginx source to upstream, closes #90
Diffstat (limited to 'ftdetect')
-rw-r--r-- | ftdetect/polyglot.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim index 12440d61..2ef84c93 100644 --- a/ftdetect/polyglot.vim +++ b/ftdetect/polyglot.vim @@ -245,7 +245,10 @@ endif endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nginx') == -1 -au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/*,*/nginx/vhosts.d/*,nginx.conf if &ft == '' | setfiletype nginx | endif +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 endif if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'opencl') == -1 |