使用VIM作为HTML编辑器 [英] Using VIM as a HTML editor
问题描述
你知道Notepad ++如何具有这个功能,当你点击一个标签(比如说)时它会自动突出显示结束标签()?它叫什么?你还可以如何调整VIM来使用这个功能?
还有什么方法可以让VIM变成功能强大且高效的HTML编辑器?
我在vim中完成了所有的HTML编辑工作。我发现在vim中编辑HTML和XML最有用的三个插件是matchit,surround和 allml 。
Matchit允许您使用'%'跳转到开始/结束标记。环绕声允许您轻松添加,删除和更改周围的标签。 Allml为您提供了一组用于编辑(X)HTML和XML的映射。
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?
And any more ways you can turn VIM into a powerful and efficient HTML editor?
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 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屋!