下载文件
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

相关文章:

  • 2021-08-06
  • 2021-06-25
  • 2022-01-26
  • 2022-12-23
  • 2021-12-10
  • 2021-09-30
  • 2022-12-23
  • 2021-10-03
猜你喜欢
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
相关资源
相似解决方案