nginx.vim highlights configuration files for nginx, the high-performance web server (see http://nginx.net). 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 (adjust the path to your nginx installation)