vim opens the file in the specified syntax coloring format, or the file has been opened and the syntax format needs to be specified.
天蓬老师
天蓬老师 2017-05-16 16:38:28
0
3
709

When opening the resin configuration file, I hope to use xml format to color the file. However, since the configuration file suffix on the server is conf, vim does not have syntax highlighting. Is there any way to specify the xml format syntax to open the file? document?

Supplement:
The current method is to copy the configuration file and change the suffix to xml to view. But I want to know if there is a less troublesome way?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all (3)
小葫芦

Use:setf xml:setfiletype xml(complete)

    phpcn_u1582
    au BufNewFile,BufRead *.conf set syntax=xml
      迷茫

      I recommend sublime text2 instead of VIM

        Latest Downloads
        More>
        Web Effects
        Website Source Code
        Website Materials
        Front End Template
        About us Disclaimer Sitemap
        php.cn:Public welfare online PHP training,Help PHP learners grow quickly!