Re: Word-wrapping text editor
On Tue, Sep 25, 2001 at 04:25:48PM +0300, Kalle Olavi Niemitalo wrote:
| "V. T. Jones" <tjones@on-net.net> writes:
|
| > I want a terminal based text editor that does word-wrap rather than just
| > wrapping in the middle of a word when it gets to the end of a line. "Joe"
| > seems to do this. Can emacs or vi be made to do this?
|
| When Emacs wraps your text in the middle of a word, that's only for
| display purposes. The text is still one line logically, and if you
| save it to a file, Emacs does not mark the line breaks in any way.
Ditto for vim.
See ":help textwidth" and ":help formatoptions" for more details. For
writing mails (such as this) I use ":set tw=70 fo=tcq". (BTW this can
be added to the .vimrc and executed automatically or it can be typed
as shown.)
HTH,
-D
Reply to: