[clug] Command of the Hour

Brett Worth brett at worth.id.au
Mon Sep 15 22:10:18 GMT 2008

One I use a lot is fmt.  If I'm editing text in vi I normally use "set wm=5" to get the
line wrapping at the 5th to last column.  After making changes though the formatting gets
out of whack.  I then use the "!" with a moving command to send a block of the file
through "fmt". e.g.

	{      -  Go to the blank line before a paragraph.
	!}fmt  -  Send the paragraph through fmt.

Or 3 paragraphs


Or for the entire document (which is probably not what you want):



More information about the linux mailing list