使用Vim作为HTML编辑器 [英] Using Vim as an HTML editor
问题描述
您知道Notepad ++如何具有此功能,当您单击标记(例如)时,它也会自动突出显示结束标记()?它叫什么?以及如何调整Vim也具有此功能?
You know how Notepad++ has this feature that when you click on a tag (say ) it automatically highlights the ending tag () as well? What's it called? And how do you tweak Vim to have this feature as well?
还有其他任何方法可以将Vim变成功能强大且高效的HTML编辑器?
And any more ways you can turn Vim into a powerful and efficient HTML editor?
推荐答案
我在vim中进行所有HTML编辑。我发现对vim中的HTML和XML编辑最有用的三个插件是matchit,round和 allml 。
I do all of my HTML editing in vim. The three plugins I find most helpful for editing HTML and XML in vim are matchit, surround, and allml.
Matchit允许您跳转到带有'%'的开始/结束标签。环绕声使您可以轻松地添加,删除和更改周围的标签。 Allml为您提供了许多用于编辑(X)HTML和XML的映射。
Matchit will allow you to jump to the start/end tag with '%'. Surround allows you to easily add, delete, and change the surrounding tags. Allml provides you with a great set of mappings for editing (X)HTML and XML.
这篇关于使用Vim作为HTML编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!