Sam
Sam

Reputation: 2371

Stopping vim putting text onto the next line automatically

When I type in vim it is automatically putting stuff onto the next lines for example when i have

Son     200 title African Art     carving Songo people    1930/12/31      1995/10/22      890     Finn    Borrowed

And I try adding 'the human' to Finn it does this

Son     200 title  African Art     
carving Songo people    1930/12/31      1995/10/22      890        Finn 
the human       Borrowed

It's been causing some errors if I don't manually backspace the "new lines" is there a way to stop this from happening?

Upvotes: 0

Views: 51

Answers (1)

Ingo Karkat
Ingo Karkat

Reputation: 172788

This is caused by either 'textwidth' or 'wrapmargin' option. The 'formatoptions' option determines when exactly the wrapping happens.

As all of those options are usually set by a filetype plugin, you also need to inspect the current filetype. So,

:verbose setlocal tw? wm? fo?

would be a good starting point for troubleshooting. See :help ins-textwidth for a full explanation of the effect.

Upvotes: 3

Related Questions