折叠方法=标记和语法同时? [英] Foldmethod=marker and syntax at the same time?
本文介绍了折叠方法=标记和语法同时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
同一个文件是否可以同时使用基于标记和语法的折叠?
Is it possible for a same file to use folding based on both markers and syntax ?
推荐答案
由于 foldmethod
一次只能设置一个,我认为你真正能做到这一点的唯一方法就是使用:set foldmethod=expr
并使用 foldexpr
进行修改,即使那样我也不确定它是否能够完全按照您的要求执行.
Since foldmethod
can only be set to one at a time, I think the only way you could really do this would be to use :set foldmethod=expr
and hack about with foldexpr
, and even then I'm not sure it would be able to do exactly what you want.
所以,简短的回答:没有
So, short answer: no
长答案:也许,如果您敢于看看是否可以获得所需的结果,请使用 foldexpr
进行讨论
Long answer: maybe, muck about with foldexpr
if you dare to see if you can get the desired results
这篇关于折叠方法=标记和语法同时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文