My lines break when I am typing beyond a certain length in vim, but afterwards, if I move up one line and type J, the line will reconnect.

So it is apparently not a matter of fixed length. I would like the line not to break while typing. Is there a setting enabling this in .vimrc?

1 Answer 1


From :h 'textwidth':

Maximum width of text that is being inserted. A longer line will be broken after white space to get this width. A zero value disables this.

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.