* Thomas Ribbrock ([EMAIL PROTECTED]) [000510 06:25]:
> On Tue, May 09, 2000 at 12:02:21PM -0700, Daniel Chetlin wrote:
> [...]
> > Item two: I tend to edit my emails once or twice before sending. When I use
> > textwidth in vim, it inserts newlines initially, so if I edit the text ends up
> > looking very choppy (30 character lines, etc.) and it becomes a pain to
> > re-join the broken lines.
> [...]
> 
> I found reformatting in vi (vim, to be precise) is very easy when you simply
> mark all lines to be reformatted (visual mode) and then press 'gq'. Voilą -
> nicely formatted paragraph with lines in ideal length.

I have this line:

map <F10> gqap

in my .vimrc file and it works great. Simply move to the begining of the
paragraph you want to re-format, hit "F10" and it tidies it up.

Hall

Reply via email to