Vim Markdown 折叠? [英] Vim Markdown Folding?

查看:36
本文介绍了Vim Markdown 折叠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚意识到 VIM 7.3 内置了对突出显示 Markdown 文件的支持.优秀的.但是,它不会在标题上折叠.

I just realized that VIM 7.3 has built-in support for highlighting Markdown files. Excellent. However, it doesn't fold on the headings.

是否可以提供有关如何使其工作的建议?

Can any offer suggestions on how to get this working?


或者,我使用 Markdown 仅作为获取简单结构化文本的一种方式.如果有更好的替代格式,也请提出.但不确定我是否在挖掘 TVO 或 VimOutliner.

推荐答案

我有同样的问题,并尝试了 Jander 的好解决方案.唯一的问题是,通过使用语法定义折叠,您会丢失任何 Markdown 语法突出显示.

I had the same question, and played around with Jander's nice solution. The only problem is that by defining folding using syntax, you lose any Markdown syntax highlighting.

鉴于您可能对替代标记感兴趣,我建议使用 reStructuredText 和 amazing Vst vim 扩展.它的折叠效果非常好.Rst 比 Markdown 强大得多.

Given that you might be interested in alternate markups, I would suggest using reStructuredText, and the amazing Vst vim extension. It does folding very nicely. Rst is much more powerful than Markdown.

这篇关于Vim Markdown 折叠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆