*BSD News Article 97472


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.radio.cz!europa.clark.net!news.maxwell.syr.edu!news.new-york.net!nonexistent.com!not-for-mail
From: Nathan Dorfman <nathan@senate.org>
Subject: Re: vim/nvi Ignore wrapmargin
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: Email abuse@news2.new-york.net if this posting is inappropriate
Content-Transfer-Encoding: 7bit
Organization: Senate Industries
Message-ID: <EBK2pz.687@nonexistent.com>
References: <EBIv7o.Esq@nonexistent.com> <5nin2n$nf5$1@mark.ucdavis.edu>
X-Mailer: Mozilla 3.01 (X11; I; FreeBSD 2.2.1-RELEASE i386)
Mime-Version: 1.0
X-Trace: 865938884 7520 nathan [204.141.125.38]
X-Nntp-Posting-Host: senate.org
Date: Tue, 10 Jun 1997 10:33:54 GMT
Lines: 34
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42672

Greg Shenaut wrote:
> 
> 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

This is what I get with nvi:
 set: no lr option: 'set all' gives all option values.
Vim gives a similar error ... the only variable that starts with an ell
is the lock variable. I am trying to accomplish an effect like what
you're saying, instead of wrapping the buffer (it doesn't save the new
lines, AFAIK), it would continue the line out to the left, scroll
horizontally if necessary.
-- 
#####################   For PGP key, telnet senate.org 5000
#  Nathan Dorfman   #        or finger nathan@senate.org
# Senate Industries # /'-- www.senate.org | ftp.senate.org -- `\
##################### \________________________________________/