You can set display to lastline to see "@@@" at the end of the last line when it doesn't fit the screen. I'd prefer to use a different character for that purpose, such as ... or ---.

Is there a way to change the character used?

  • 2
    It's currently not possible to change this without editing the source and recompiling.
    – Heptite
    Aug 27 '21 at 17:57

vim handle spaces tab and return lien by:

set list

set listchars=space:-
set listchars+=tab:>-
set listchars+=eol:¶

to pick the last line and add @ or at the end you can use echo getpos(".")[1] to get this line number then use autocmd to test if this line equal the last line number (nu for count all line number)

function TestIfLastLine()
  if echo getpos(".")[1] ==nu 
    set listchars=eol:¶
     set listchars=eol:\ " I'm use space here
  • 1
    The feature discussed in the question is independent of and orthogonal to list/listchars. Unfortunately one has nothing to do with the other.
    – D. Ben Knoble
    Aug 28 '21 at 11:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.