I recently went through and cleaned up my vimrc. In so doing, I inadvertently removed some code or a plugin that inserted a bluish > character at the end of lines that were truncated because they were wider than the buffer.

The only option I have now related wrapping is set nowrap. Which option is responsible for showing visual indication that a line has been truncated?

The mg editor shows a $ at the right edge of a truncated line, as well as the left edge (mg always shows the leftmost part of "inactive" lines regardless of cursor position). Is there a way to mimic this behavior when scrolling horizontally?

  • 2
    "Cleaning up" is not exactly the same thing as "destroying".
    – romainl
    Nov 13, 2016 at 10:17
  • @romainl The listchars thing ended up being hidden away in the vim-sensible plugin, which I got rid of. Nov 13, 2016 at 16:28

1 Answer 1


From vim help (:h listchars) :

extends:c      Character to show in the last column, when 'wrap' is
               off and the line continues beyond the right of the
precedes:c     Character to show in the first column, when 'wrap'
               is off and there is text preceding the character
               visible in the first column.

So the following will set this characters:

set listchars=extends:>,precedes:<

Change them to your desired character and you could colorize them with following highlighting group:

hi NonText guifg=#ffffff ctermfg=gray

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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