vim ~/.vim/ftdetect/nginx.vim
# 添加下面这行
au BufRead,BufNewFile /config/path/conf/**/*.conf set ft=nginx