FMT(1)

NAME
fmt - adjust line-length for paragraphs of text

SYNOPSIS
fmt [-s] [-w width | -width] [file]...

DESCRIPTION
This page describes the version of fmt distributed with elvis(1).

fmt is a simple text formatter. It inserts or deletes newlines, as necessary, to make all lines in a paragraph be approximately the same width. It preserves indentation and word spacing.

If you don't name any files on the command line, then fmt will read from stdin.

It is typically used from within vi(1) to adjust the line breaks in a single paragraph. To do this, move the cursor to the top of the paragraph, type "!}fmt", and hit <Return>.

OPTIONS

-w width or -width
    Use a line width of width characters instead of the default of 72 characters.

-s  Don't join lines shorter than the line width to fill paragraphs.

SEE ALSO
vi(1)

AUTHOR
Steve Kirkendall
kirkenda@cs.pdx.edu