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.


You should the this

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


  • :h wrap
  • :h 'listchars'
| improve this answer | |

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.