On Tue, Jun 15, 1999 at 11:48:25AM +0200, Chmouel Boudjnah wrote:
> Tom Berger <[EMAIL PROTECTED]> writes:
> 
[snip]
> 
> hum, i don't really understand your question.
> 
> Are you satisfied with this :
> 
> <word1> <word2> <word3> <word4> linebreak
> <word4> <word5> 
> 
> dw<word>Jgqgq

No, not really ;-)
         
> J: Join the lines
> gqgq: Format the current lines (to the text-width value)
> 
> and :
> 
> :set redraw on 

        :set redraw on
        Unknown option: on

        :set redraw
        Invalid option

        vi_diff.text:

        "Missing options

        These options are in the Unix Vi, but not in Vim.
        [...]
        redraw
        [...]"

I will try to show what I mean with a real life example.

Original text:

 Text contents of this site are copyright by Tom Berger and protected by the
 Open Content Public License (OPL), except for FAQ.html and MANUAL.html, which
 were written by Akinori Ito.

Editing: dw copyright dw protected

Edited text now looks like this:

 Text contents of this site are by Tom Berger and by the
 Open Content Public License (OPL), except for FAQ.html and MANUAL.html, which
 were written by Akinori Ito.

But I want it to look like this *without* having to type a command:

 Binary contents are copyright by Akinori Ito, except for the GC library. Use,
 modification and distribution free of charge are granted by the author.

That is, I want vim to reformat the text automatically after each editing.
Guess it is somewhere in the 'formatoptions', but this is a rather long section
in help.txt and I thought someone might have had a solution at hand.

Thanks

tom
  

> -- 
> MandrakeSoft          http://www.mandrakesoft.com/
>                                        --Chmouel

-- 
"Everybody is someone else's newbie" (Marilyn Manson, edited)
Thomas 'tom' Berger, [EMAIL PROTECTED] No spam, no UCE. 'Nuff said.
Get Answers! Visit Mandrake Answers on http://aolmfaq.tsx.org!

Reply via email to