6/7 What are some programs that can automatically word wrap (like how
pine does it)?
\_ pico
\_ emacs
\_ emacs, pico, vi, any vi clone, any emacs clone, any word processor
written in the last 20 years
\_ to be fair, emacs and vi aren't exactly helpful about doing it.
For emacs M-x auto-fill-mode toggles word wrap, M-q rewraps
the lines if you add into the middle of the paragraph, and
in general it is kinda a pain in the ass. I forget how to
do it in vi.
\_ How is M-q any more difficult than, say, Pico's C-j? If you
want constant word-wrapping, use a real word processor.
\_ word-wrap is enabled in pico by default.
\_ and emacs auto-fill can be stuck in .emacs.
\_ and auto word wrap can be inserted into .emacs
\_ duh. I didn't say it couldn't. the point is that
it's not emacs' default behavior.
\_ As for vim, use: set tw=N (number of characters per line).
The "gq" command in vi mode formats unformated lines (over line
ranges if you like) . You can also configure it to use set tw=X
automatically when you open certain types of files (e.g. only
when editing mail messages and /etc/motd.public
\_ and if you don't run vim, you can pipe to fmt:
!}fmt -72<return>
pipes the content of the file from point to the end of the
paragraph to fmt. you can also bind this to a key.
\_ why would anyone want to word wrap when editing /etc/motd.public?
\_ nice. |