I want to be notified when a line is too long to fit in the window.

Right now I have this in ~/.vimrc:

set wrap
let &showbreak = '        +++ '

I'd like to change that to:

set nowrap
let &somesetting = ' > '

Such that somesetting tells vim to put a > on the right margin of any line is too long to be fully displayed.

I coulda sworn vim could do this but I can't find the setting.

1 Answer 1


You should the this

:set listchars+=precedes:<,extends:>


  • :h wrap
  • :h 'listchars'

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.