0

我在插件中使用隐藏来隐藏一些数据,但是当隐藏线变得太长时,它会产生一个仍然隐藏的包装,看起来很奇怪。

它看起来如何:

<hidden metadata line that the user can't see......
which is wrapped and makes 2 empty looking lines when it gets long>
stuff

它应该是什么样子:

<a very long metadata line that is not wrapped>
stuff

我如何告诉 vim 不换行某些行(隐藏行)?

4

2 回答 2

0

等等,我想出了一种方法。自定义折叠。单行折叠不会显示为已包裹。

现在我只需要为我的插件编写一个自定义语法折叠部分,我就很成功了。

于 2013-06-10T16:41:35.123 回答
0

在当前版本上是不可能做到的。

This is intentional.  Without this cursor movements would be messed up,
as the screen line depends on how text is concealed, which requires
syntax parsing, which is slow.

有关更多信息,请参阅有关 vim_dev 组的讨论。

于 2013-06-11T11:54:42.687 回答