public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] NVI and word wrap?
@ 2006-03-29 16:28 Thomas T. Veldhouse
  2006-03-29 19:45 ` Thomas T. Veldhouse
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas T. Veldhouse @ 2006-03-29 16:28 UTC (permalink / raw
  To: gentoo-user

Does anybody know how to get NVI to word wrap in a similar manner to 
VIM?  With VIM, I could use:

vim -f '+set tw=78' and it would wrap at 78 characters at a word boundry 
(great for emails and posts to USENET).

Thanks in advance,

Tom Veldhouse

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] NVI and word wrap?
  2006-03-29 16:28 [gentoo-user] NVI and word wrap? Thomas T. Veldhouse
@ 2006-03-29 19:45 ` Thomas T. Veldhouse
  2006-03-29 20:00   ` [gentoo-user] " James
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas T. Veldhouse @ 2006-03-29 19:45 UTC (permalink / raw
  To: gentoo-user

Thomas T. Veldhouse wrote:
> Does anybody know how to get NVI to word wrap in a similar manner to 
> VIM?  With VIM, I could use:
>
> vim -f '+set tw=78' and it would wrap at 78 characters at a word 
> boundry (great for emails and posts to USENET).
>
Well, it seems nobody was able to help me out, but I did find a solution 
that works very well, if anybody is interested.  I simply put the 
following lines in my .bashrc and now my lines wrap at 78 characters 
(considered "correct" for USENET), assuming the console is 80 characters 
(I may have to fix this).

TIN_VI_OPTIONS="set wm=2"
alias tin='EDITOR="/usr/bin/vi" EXINIT="${TIN_VI_OPTIONS}" /usr/bin/tin'

It took a lot of manpage reading to figure this little tidbit out.  It 
wasn't entirely clear to me that options are passed via an environment 
variable.  With VIM, you can pass them via the -f switch.

Tom Veldhouse

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-user]  Re: NVI and word wrap?
  2006-03-29 19:45 ` Thomas T. Veldhouse
@ 2006-03-29 20:00   ` James
  2006-03-29 20:14     ` Thomas T. Veldhouse
  0 siblings, 1 reply; 4+ messages in thread
From: James @ 2006-03-29 20:00 UTC (permalink / raw
  To: gentoo-user

Thomas T. Veldhouse <veldy <at> veldy.net> writes:


> > Does anybody know how to get NVI to word wrap in a similar manner to 
> > VIM?  With VIM, I could use:

> > vim -f '+set tw=78' and it would wrap at 78 characters at a word 
> > boundry (great for emails and posts to USENET).
> >
> Well, it seems nobody was able to help me out, but I did find a solution 
> that works very well, if anybody is interested.  I simply put the 
> following lines in my .bashrc and now my lines wrap at 78 characters 
> (considered "correct" for USENET), assuming the console is 80 characters 
> (I may have to fix this).
> 
> TIN_VI_OPTIONS="set wm=2"
> alias tin='EDITOR="/usr/bin/vi" EXINIT="${TIN_VI_OPTIONS}" /usr/bin/tin'
> 
> It took a lot of manpage reading to figure this little tidbit out.  It 
> wasn't entirely clear to me that options are passed via an environment 
> variable.  With VIM, you can pass them via the -f switch.

I appreciate your sharing this tidbit. I looked at:

http://www.bostic.com/vi/

and saw what they said are advantages. What do you believe are the 
advantages of Nvi?

just curious,

James



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user]  Re: NVI and word wrap?
  2006-03-29 20:00   ` [gentoo-user] " James
@ 2006-03-29 20:14     ` Thomas T. Veldhouse
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas T. Veldhouse @ 2006-03-29 20:14 UTC (permalink / raw
  To: gentoo-user

James wrote:
> I appreciate your sharing this tidbit. I looked at:
>
> http://www.bostic.com/vi/
>
> and saw what they said are advantages. What do you believe are the 
> advantages of Nvi?
>
> just curious,
>   
BTW .. I used the following which fixed the wordwrap to 78 in an 80 
column field.

TIN_VI_OPTIONS="set wm=2 co=80"
alias tin='EDITOR="/usr/bin/vi" EXINIT="${TIN_VI_OPTIONS}" /usr/bin/tin'


The advantage that I see is that NVI acts just like VI, which is what I have learned.  I don't like trying to learn things differently if I don't need to.  NVI is just like what I am used to on FreeBSD and others.

Also, it is BSD licensed, which I like.


Tom Veldhouse

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-29 20:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-29 16:28 [gentoo-user] NVI and word wrap? Thomas T. Veldhouse
2006-03-29 19:45 ` Thomas T. Veldhouse
2006-03-29 20:00   ` [gentoo-user] " James
2006-03-29 20:14     ` Thomas T. Veldhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox