nginx配置文件语法高亮

下载文件
nginx.vim

https://vim.sourceforge.io/scripts/script.php?script_id=1886

安装
下载 nginx.vim 文件到 ~/.vim/syntax/ (/path/vim/syntax/ 目录,里面放置了许多其他的配置文件高亮设置文件) , 把下面的代码添加到 /path/vim/filetype.vim 文件:

au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif
posted @ 2017-09-21 12:46  Achxku  阅读(656)  评论(0编辑  收藏  举报