*BSD News Article 97442


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!vbcnet-west!bulb.garlic.com!news.scruz.net!news.he.net!news.maxwell.syr.edu!newsfeed.internetmci.com!news.wwa.com!news.ucdavis.edu!trefoil.bogs.org!greg
From: greg@trefoil.bogs.org (Greg Shenaut)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: vim/nvi Ignore wrapmargin
Date: 10 Jun 1997 05:01:11 GMT
Organization: BOGS Research Group
Lines: 19
Message-ID: <5nin2n$nf5$1@mark.ucdavis.edu>
References: <EBIv7o.Esq@nonexistent.com>
Reply-To: gkshenaut@ucdavis.edu
NNTP-Posting-Host: bogslab.ucdavis.edu
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42665

Nathan Dorfman (nathan@senate.org) wrote:
: Hi! I purchased and installed 2.2.1-RELEASE, the CD set, from Walnut
: Creek. However, I have a problem with both nvi and vim. I :set
: wrapmargin=0 (or wm=0), which according to O'Reilly's vi book, should
: cause the editor to not wrap. It STILL wraps. I even set it to 20, which
: should make it wrap 20 columns before the right "end of screen" and it
: ignores that too ... do I need to find the source and compile, or what?
: I have it in my .exrc (set wm=0) and tried doing it manually inside
: the editor, with and without the .exrc file existing ... anyone have
: a clue as to what is up here?

I think you are confusing margin-wrapping (which breaks lines by
inserting a newline into the file when the wrapmargin limit is
exceeded) with left-right shift, which shifts the entire display
to the left or right when the cursor would move past the edge, but
which makes no change in the file.  Try ":se lr" to see the latter
effect.

-Greg