turn off wrapping in vim?
Jeremy C. Reed
reed at reedmedia.net
Wed Jul 18 14:07:17 MST 2007
On Wed, 18 Jul 2007, Matt Graham wrote:
> On Wednesday 18 July 2007 15:25, after a long battle with technology,
> Jeremy C. Reed wrote:
> > VIM - Vi IMproved 7.0
> > I don't want my lines automatically wrapped. I don't want it to
> > scroll on long lines.
> > :set nowrap
> > :set sidescroll=0
> >
> > But once I started appending text to a long line, it wraps my
> > content.
>
> Do you mean "vim chops the line in 2 at the last whitespace char, once
> you've typed more than N chars on the line"?
Yes.
> If so, ":se tw=0" ? In
> general, you set tw (textwidth) to something like 72 for editing normal
> text files, and 0 for things with insanely long lines. BTDT, which is
> why my .vimrc on one machine had se tw=0 in it.
I tried that and that doesn't help me either. This is on Ubuntu edgy (I
hate using names instead of versions).
Once I append to the long line the entire long line is split into many
shorter lines -- breaking my database and I join back together with
repeated "J" to join.
Jeremy C. Reed
More information about the PLUG-discuss
mailing list