# Turning off splitting lines in vim

One of one of the most aggravating attributes of vim is dividing lines. For one reason or another a person located it would certainly be excellent to divide lines also in whitespace delicate layouts. As an example transforming:

echo very-long-string > file


to

echo
very-long-string
> file


How to transform it off?

Modify : It is not aesthetic cover - it is covered in documents (i.e. vim inserts \ n in documents if it takes into consideration line also lengthy). Covering lengthy lines is rational and also while one might intend to transform of I can live without it.

0
2019-05-13 05:06:30
Source Share

I think you are speaking about the attribute where lengthy lines are aesthetically "covered" to be revealed on numerous lines. (This does not conflict with the web content of the documents however, it is simply the means the message exists aesthetically.) Release the adhering to command to transform of this attribute:

:set nowrap


If you are seeing that vim is actually dividing lines instantly (not simply aesthetically yet by in fact putting line breaks) after that you have to have set up vim to restrict message size ; this is not made it possible for by default. Because instance you can disable it once more similar to this:

:set textwidth=0


Edit your .vimrc arrangement documents to make these adjustments irreversible.

0
2019-05-17 17:48:56
Source

set formatoptions-=tc

See :help fo-table for even more details.

Wim is pointer of set textwidth=0 need to have the very same result, though a great deal of aggravating filetype plugins will certainly undo that for you. (Ugh.)

0
2019-05-17 17:45:37
Source