Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to turn off word wrap in gvim?

2,818 views
Skip to first unread message

Fred

unread,
Jul 8, 2005, 7:09:11 PM7/8/05
to
I'm trying to turn off word wrap in gvim 6.3.
That is, have lines of text extend past the right
side of the window, so ALL lines, regardless of
how long, are only 1 line. I tried setting these
parameters to 0 or 300, and it had no affect:

set wrapmargin=300
set textwidth=300


How can I have text, regardless of how long it
is, be displayed on only one line?


-Thanks

Fabian Kurz

unread,
Jul 8, 2005, 8:09:35 PM7/8/05
to
Fred wrote:
> That is, have lines of text extend past the right
> side of the window, so ALL lines, regardless of
> how long, are only 1 line.

:set nowrap

--
Fabian Kurz, DJ1YFK * Dresden, Germany * http://fkurz.net/

Stan Brown

unread,
Jul 8, 2005, 9:06:18 PM7/8/05
to
On Fri, 08 Jul 2005 19:09:11 -0400, Fred <itf...@cdw.com> wrote:

>I'm trying to turn off word wrap in gvim 6.3.
>

>How can I have text, regardless of how long it
>is, be displayed on only one line?

Do you mean _existing_ lines of text? If so,
:set nowrap

Or do you mean you don't want Vim to very long break lines as you
type them? If so,
:set tw=0


--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"My theory was a perfectly good one. The facts were misleading."
-- /The Lady Vanishes/ (1938)

Fred

unread,
Jul 8, 2005, 9:13:07 PM7/8/05
to
On Fri, 08 Jul 2005 21:06:18 -0400, Stan Brown wrote:

> On Fri, 08 Jul 2005 19:09:11 -0400, Fred <itf...@cdw.com> wrote:
>

>> [quoted text muted]


>
> Do you mean _existing_ lines of text? If so,
> :set nowrap
>
> Or do you mean you don't want Vim to very long break lines as you
> type them? If so,
> :set tw=0


Yes, thank you, the set nowrap did it. Easy once you
know how!


0 new messages