8

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

10

You should the this

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

Ref:

  • :h wrap
  • :h 'listchars'
0

Your Answer

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

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