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

查看:87
本文介绍了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

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天全站免登陆