One of the most annoying features of vim is splitting lines. For some reasons someone found it would be good to split lines even in whitespace sensitive formats. For example changing:
echo very-long-string > file
to
echo
very-long-string
> file
How to turn it off?
Edit: It is not visual wrap – it is wrapped in file (i.e. vim inserts \n in file if it considers line too long). Wrapping long lines is sane and while one may want to turn of I can live without it.
Best Answer
set formatoptions-=tc
See
:help fo-table
for more info.Wim's suggestion of
set textwidth=0
should have the same effect, though a lot of annoying filetype plugins will undo that for you. (Ugh.)