1 |
Thomas T. Veldhouse <veldy <at> veldy.net> writes: |
2 |
|
3 |
|
4 |
> > Does anybody know how to get NVI to word wrap in a similar manner to |
5 |
> > VIM? With VIM, I could use: |
6 |
|
7 |
> > vim -f '+set tw=78' and it would wrap at 78 characters at a word |
8 |
> > boundry (great for emails and posts to USENET). |
9 |
> > |
10 |
> Well, it seems nobody was able to help me out, but I did find a solution |
11 |
> that works very well, if anybody is interested. I simply put the |
12 |
> following lines in my .bashrc and now my lines wrap at 78 characters |
13 |
> (considered "correct" for USENET), assuming the console is 80 characters |
14 |
> (I may have to fix this). |
15 |
> |
16 |
> TIN_VI_OPTIONS="set wm=2" |
17 |
> alias tin='EDITOR="/usr/bin/vi" EXINIT="${TIN_VI_OPTIONS}" /usr/bin/tin' |
18 |
> |
19 |
> It took a lot of manpage reading to figure this little tidbit out. It |
20 |
> wasn't entirely clear to me that options are passed via an environment |
21 |
> variable. With VIM, you can pass them via the -f switch. |
22 |
|
23 |
I appreciate your sharing this tidbit. I looked at: |
24 |
|
25 |
http://www.bostic.com/vi/ |
26 |
|
27 |
and saw what they said are advantages. What do you believe are the |
28 |
advantages of Nvi? |
29 |
|
30 |
just curious, |
31 |
|
32 |
James |
33 |
|
34 |
|
35 |
|
36 |
-- |
37 |
gentoo-user@g.o mailing list |