Fill and join text, producing lines of roughly the same length. (Unlike nroff
, the lines are not justified.) fmt
ignores blank lines and lines beginning with a dot (
) or with "From:". The emacs
to join paragraphs, so fmt
is useful for other editors, such as vi
. The following vi
command fills and joins the remainder of the current paragraph:
Don't adjust the first two lines; align subsequent lines with the second line. Useful for paragraphs that begin with a hanging tag.
Split long lines but leave short lines alone. Useful for preserving partial lines of code.
Create lines no longer than n
columns wide. Default is 72. (Can also be invoked as
for compatibility with BSD.)