<<< Date Index >>>     <<< Thread Index >>>

Re: editor settings



On Thu, Dec 15, 2005 at 03:10:16PM -0800 I heard the voice of
Gary Johnson, and lo! it spake thus:
> 
> An easy way to do that is to move your cursor to somewhere in that
> paragraph (it's probably already there since you just edited a line
> there) and type
> 
>     gqip

I use gq} (well, ^T mapped to it), which formats from the cursor to
end of paragraph.  It's useful because sometimes I want to leave
previous lines in a paragraph alone.

It should be noted that vim's internal reformatting is smart enough
to, for instance, reflow >'s in emails, so you can reformat quoted
text without mangling it (which capability fmt lacks).  For instance,
I can :set tw=55 and then ^T the following:

> That will reformat the entire paragraph.  You can
> find out more about the gq command in vim's built-in
> help system by executing

and it moved the >'s to just the right places for me.


-- 
Matthew Fuller     (MF4839)   |  fullermd@xxxxxxxxxxxxxxx
Systems/Network Administrator |  http://www.over-yonder.net/~fullermd/
           On the Internet, nobody can hear you scream.