Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!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 13:21:27 GMT Organization: BOGS Research Group Lines: 35 Message-ID: <5njkcn$cuq$1@mark.ucdavis.edu> References: <EBIv7o.Esq@nonexistent.com> <5nin2n$nf5$1@mark.ucdavis.edu> <EBK2pz.687@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:42683 Nathan Dorfman (nathan@senate.org) wrote: : 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. : 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. Well, it must be a version dependency. I just tried ":se lr" on a 2.2.1 system and it didn't work. However, ":se leftright" (no abbreviation) does work. I should add that "real" vi doesn't have this option at all, so this may account for the inconsistency. -Greg