https://www.vim.org/scripts/script.php?script_id=1886

    根据上面链接下载脚本然后安装

    install details
    Download nginx.vim to ~/.vim/syntax/, and then add this line to ~/.vim/filetype.vim:

    au BufRead,BufNewFile /etc/nginx/,/usr/local/nginx/conf/ if &ft == ‘’ | setfiletype nginx | endif |