Richard van der Leeden wrote:
François Ingelrest-2 wrote:
Hello all,
I'm displaying the line number in front of each line, so the tilde
characters in front of non-existing lines are useless for me. Is there
a way to not display them?
You can change the colour of 'nontext' items (see :help nontext) to be the
same as the background colour - e.g if your background is black do:
:hi NonText cterm=NONE ctermbg=black ctermfg=black gui=NONE guibg=black
guifg=black
...or, to be independent of colorscheme settings:
hi clear NonText
hi link NonText Ignore
au ColorScheme * hi clear NonText | hi link NonText Ignore
This, of course, would also hide other instances of NonText highlight, such as
some of what is displayed because of 'list' / 'listchars' settings.
Another possibility is gg^O (i.e., hit g twice, then Ctrl-O, all of them in
Normal mode) which will adjust the display so that none (or, if the file is
shorter than the window, as few as possible) of the "tilde" lines are showing.
Best regards,
Tony.
--
"I have the world's largest collection of seashells. I keep it
scattered around the beaches of the world ... Perhaps you've seen it.
-- Steven Wright