[vim/vim] Add a fillchar for where the statusline from a split meets the vertical seperators (#8018)

115 views
Skip to first unread message

BonaBeavis

unread,
Mar 27, 2021, 7:47:16 AM3/27/21
to vim/vim, Subscribed

Is your feature request about something that is currently impossible or hard to do? Please describe the problem.
I got quite obsessive about getting a minimalist consistent look for my vim. One thing that keeps bugging me is this:

image

As you can see next to the cursor where the statusline meets the vertical seperator there is a gap.

Here is a full screen shot for context.
image

Describe the solution you'd like
I would like to fill it with with a half block to get rid of it. Or a right half block depending on the side of the split.

Describe alternatives you've considered
Living with it. This would be all right, I just wanted to ask.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

matveyt

unread,
Mar 27, 2021, 2:17:40 PM3/27/21
to vim/vim, Subscribed

This is not a gap. VertSplit, being a standard highlighting group, has its own set of attributes, including background color. In your current colorscheme VertSplit and StatusLine have different backgrounds. That's all.

Lifepillar

unread,
Mar 27, 2021, 5:24:32 PM3/27/21
to vim/vim, Subscribed

If I understand correctly, the request is about using a different VertSplit symbol just for the cursor's line and just when the cursor is at the same height as a status line. E.g,., instead of:

      |

      |

██████| Cursor is on this line

      |

      |

which leaves some space between the right end of the status line (█) and the VertSplit symbol (|), have something like

      |

      |

██████▌ Cursor is on this line

      |

      |

where the VertSplit symbol at the cursor's line is a half block (▌) instead of a bar (|).

@BonaBeavis For things to work as you expect, that would require introducing two symbols for the “crossing” point, in addition to VertSplit: one for each end of the status line. But using half blocks may be confusing when two status lines meet: you won't be able to distinguish a single status line in a horizontal split from two status lines in a vertical split.

If you don't like “gaps”, you might set VertSplit's background color to the status line's background color as @matveyt suggests, and optionally set the vertical separator to a space in fillchars.

matveyt

unread,
Mar 28, 2021, 3:48:10 AM3/28/21
to vim/vim, Subscribed

@lifepillar That'll do no good if VertSplit fore does not match StatusLine back. So it's not an option.

BonaBeavis

unread,
Mar 31, 2021, 12:06:33 PM3/31/21
to vim/vim, Subscribed

@lifepillar

But using half blocks may be confusing when two status lines meet: you won't be able to distinguish a single status line in a horizontal split from two status lines in a vertical split.

This! So actually the "gap" is feature and not a bug ^^

BonaBeavis

unread,
Mar 31, 2021, 12:06:46 PM3/31/21
to vim/vim, Subscribed

Closed #8018.

Reply all
Reply to author
Forward
0 new messages