vim代码折叠之html文件

最近编辑html,发现有须要折叠代码,查了一下,做个笔记。

  • set foldmethod=manual
  • 在某个标签处,zfatzfit 能够创立一个折叠,而后用za就能够关上或者敞开一个折叠,

I have found zfat (or, equally, zfit) works well for folding with HTML documents. za will toggle (open or close) an existing fold. zR opens all the folds in the current document, zM effectively re-enables all existing folds marked in the document.

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理