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
This article describes how to enable https servic...
First, let's take a look at my basic developm...
Table of contents MySQL delete syntax alias probl...
1. Clear floating method 1 Set the height of the ...
describe: When the Tabs component switches back a...
Table of contents No switch, no complex code bloc...
1. Indexing principle Indexes are used to quickly...
1. Why do packaging? Facilitates overall code cal...
1. Overview of file permissions and ownership 1. ...
Why does CSS have a cascading mechanism? Because ...
MySQL dynamically modify replication filters Let ...
Table of contents 1. Optional Chaining 2. Null va...
1. Introduction to Compose Compose is a tool for ...
This article does not have any quibbles, it is jus...
template <el-table :data="dataList"&...