Currently, when my window is bigger than the buffer being displayed, blank lines beyond the end of file are shown with the ~ characters in the line number column. I would prefer for the line number column for those lines to be blank. Is it possible to make it so?
Currently, when my window is bigger than the buffer being displayed, blank lines beyond
Share
Unfortunately, it is not possible to change the tilde character that
Vim uses to show the lines beyond the end of a file (without modifying
the source code).
A viable workaround is to hide those tildes by configuring the
NonTexthighlight group, which is used for displaying them,so that its foreground color is the same as the background one:
However, this approach is not a complete solution, because this
highlighting group is also used for rendering the list characters
(see
:help 'list'and:help 'listchars'), making it impossible tospecify highlighting just for the beyond-last-line markings.
Starting with version 8 (see
:helpg Patch 7.4.2213), Vim allowsto highlight the filler lines after the last line in a buffer using
a separate highlighting group called
EndOfBuffer: