Re: vi wrap=?
Quoth Patrick, > Doesn't work in mutt though. I guess that mutt is still using nvi so > better read man mutt on how to change this. You should be able to find an example .vimrc in: -rw-r--r--1 root root 1812 Sep 15 1998 /usr/share/doc/vim/examples/mail Which you can whack in you ~/.vimrc file. This will set the line width for mails only. It also does other cool stuff like colours the signature and quoted elements. You can also use `gq' to nicely break up long quoted lines (just like I did with your message). Just make sure you turn on syntax highlighting in the /etc/vimrc to get the full effect. cheers, damon BTW, it's /usr/doc/vim/examples if you're using slink... -- Damon Muller ([EMAIL PROTECTED]) / It's not a sense of humor. * Criminologist / It's a sense of irony * Webmeister / disguised as one. * Linux Geek / - Bruce Sterling - Running Debian GNU/Linux: Doing my bit for World Domination (tm) - pgp83RsQOY8DT.pgp Description: PGP signature
Re: vi wrap=?
Thanks for the tip but too late as I've installed vim. It seems just like nvi so much so that I think all versions of vi are the same to someone like me who just edits config files and emails. Best regards, Patrick -- Diplomacy is the art of saying "nice doggy" until you can find a rock.
Re: vi wrap=?
On Wed, Mar 08, 2000 at 05:38:57PM +, Patrick wrote: > Hi, > > Discovered that nvi is pretty basic and installed vim. Created a .vimrc and > allworks well when I edit files. > > Doesn't work in mutt though. I guess that mutt is still using nvi so better > read man mutt on how to change this. Huh? nvi supports word wrapping just fine. Create a file ~/.exrc containing something like the following: :set wraplen=70 :set ruler :set extended HTH, -- Nathan Norman "Eschew Obfuscation" Network Engineer GPG Key ID 1024D/51F98BB7http://home.midco.net/~nnorman/ Key fingerprint = C5F4 A147 416C E0BF AB73 8BEF F0C8 255C 51F9 8BB7 pgpzRalwtc8Bi.pgp Description: PGP signature
Re: vi wrap=?
Patrick wrote: > Hi, > > Discovered that nvi is pretty basic and installed vim. Created a .vimrc and > allworks well when I edit files. > > Doesn't work in mutt though. I guess that mutt is still using nvi so better > read man mutt on how to change this. set editor=vim in .muttrc or remove nvi, it may have a higher priority for alternatives, thus vi == nvi. Regards, Joey -- Let's call it an accidental feature. --Larry Wall Please always Cc to me when replying to me on the lists.
Re: vi wrap=?
Hi, Discovered that nvi is pretty basic and installed vim. Created a .vimrc and allworks well when I edit files. Doesn't work in mutt though. I guess that mutt is still using nvi so better read man mutt on how to change this. Thanks for the advice. Patrick On Wed, Mar 08, 2000 at 10:05:09AM -0600, Dave Sherohman wrote: > Martin Schulze said: > > beware, usually the margin is counted from the right side, which > > means that on a text console with 132 colums the calculation is > > different from an xterm with 80 columns... > > ...so you should use the textwidth setting instead if you want the number of > columns to be independent of your terminal. > > -- > Geek Code 3.1: GCS d- s+: a- C++ UL++$ P+>+++ L++> E- W--(++) N+ o+ !K > w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI D G e* h+ r++ y+ > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > -- Diplomacy is the art of saying "nice doggy" until you can find a rock.
Re: vi wrap=?
Martin Schulze said: > beware, usually the margin is counted from the right side, which > means that on a text console with 132 colums the calculation is > different from an xterm with 80 columns... ...so you should use the textwidth setting instead if you want the number of columns to be independent of your terminal. -- Geek Code 3.1: GCS d- s+: a- C++ UL++$ P+>+++ L++> E- W--(++) N+ o+ !K w---$ O M- !V PS+ PE Y+ PGP t 5++ X+ R++ tv- b++ DI D G e* h+ r++ y+
Re: vi wrap=?
Patrick wrote: > Hi all, > > Is there a file I can set margins to wrap at 65 characters for all vi > sessions, > including those in mutt? .exrc .virc .vimrc .elvisrc .foorc - depending on the variant of vi you're using. beware, usually the margin is counted from the right side, which means that on a text console with 132 colums the calculation is different from an xterm with 80 columns... Regards, Joey -- The only stupid question is the unasked one. Please always Cc to me when replying to me on the lists.
vi wrap=?
Hi all, Is there a file I can set margins to wrap at 65 characters for all vi sessions, including those in mutt? Thanks in advance. Patrick PS - many thanks for the printing suggestions. magicfilter was the one.