I use tengine, the installation directory is /usr/local/tengine. 1. Download nginx.vim https://www.vim.org/scripts/script.php?script_id=1886 2. Upload nginx.vim to ~/.vim/syntax/ and add the following content to the file ~/.vim/filetype.vim: au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif (Flexible configuration according to Nginx installation directory) If there is no directory or file, create one. My configuration is as follows: au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/,/usr/local/tengine/conf/* if &ft == '' | setfiletype nginx | endif 3. Then open nginx.conf, and it has color, haha. It started like this: Now it looks like this: Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: How to solve the problem of MySQL query character set mismatch
>>: Full analysis of Vue diff algorithm
1. Shut down MySQL [root@localhost /]# service my...
VMware12.0+Ubuntu16.04+MySQL5.7.22 installation t...
The implementation principle of chain programming...
1. Introduction: I think the changes after mysql8...
1. Python automatically runs at startup Suppose t...
Note: This article is about the basic knowledge p...
Table of contents 1. Retrieve via --skip-grant-ta...
Its function is to set a global style. Then your s...
The final result is like this, isn’t it cute… PS:...
The table is as follows: Code when Unity reads an...
I am planning to build my own website, so I took ...
This article example shares the specific code of ...
Table of contents Cross-domain reasons JSONP Ngin...
Stop MySQL Service Windows can right-click My Com...
Preface: In interviews for various technical posi...