不要包裹某些线条

时间:2013-06-10 16:38:12

标签: vim

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

它看起来如何:

<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不包裹某些行(隐藏的行)?

2 个答案:

答案 0 :(得分:0)

等等,我想出了一条路。定制折叠。单行折叠不会显示为包装。

现在我只需为我的插件编写自定义语法折叠部分,我就是金色。

答案 1 :(得分: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.

For more information, see this discussion on vim_dev group.