配置vim的Nginx配置文件语法高亮的脚本(转)

#!/bin/bash
[[ -d ~/.vim/syntax ]] || mkdir -p ~/.vim/syntax
cd ~/.vim/syntax
wget http://www.vim.org/scripts/download_script.php?src_id=14376 -O nginx.vim
echo “au BufRead,BufNewFile /usr/local/nginx/* set ft=nginx” >> ~/.vim/filetype.vim