您好,我刚刚开始尝试使用 vim 的 XMLedit 插件 (https://github.com/sukima/xmledit/)。我注意到它适用于 xml 文件类型和 xhtml 文件类型,但不适用于 html 文件类型。我该如何解决?
我使用了病原体安装。
其他答案都是正确的,但有些人可能不清楚。解释如下:
来自 xmledit 的 document :
To add html support Sym-link or copy this file to html.vim in your ftplugin directory.
这是你可以做的:
# Assuming you are using vundle
$ cd ~/.vim/bundle/xmledit/ftplugin
$ ls
html.vim php.vim xhtml.vim xml.vim
# The html.vim already exists, so we will change its name (or delete if you want)
$ mv html.vim html.vim.bk
# symlink
$ ln -s xml.vim html.vim
我是一名优秀的程序员,十分优秀!