To clarify:
in .vimrc as follows:

set formatoptions-=l
set formatoptions+=t
set formatoptions+=c
set formatoptions+=q
set formatoptions+=a

-- 
- Eric Smith
Eric Smith said:
> Thanks Jurgen
> (hang on let me fire up vim instead of nano) 
> Jürgen
> 
> Bingo, this did it for me:
> formatoptions=tcqa
> 
> I read somewehre I think in the docs, that vim does not support
> or did not support this so I gave up.
> 
> Then I thought, well vim can do anything of this sort that other
> editors can. Once again this proved to be so.
> 
> The above autoformats to the end of the paragraph on the fly.
> I should have asked the question before.
> 
> -- 
> - Eric Smith
> Jürgen Krämer said:
> > 
> > Hi,
> > 
> > Eric Smith schrieb:
> > > 
> > > vim of course can wrap lines as you type them
> > > and 'wrap' is default on..
> > > 
> > > However, my question concerns the case of when
> > > you revisit an already entered line and you *extend*
> > > this line, then it does not auto reformat.
> > > 
> > > I was using nono (as I often do for simple emails) and
> > > experienced a flash of envy. That prompted me to revisit this topic.
> > > (nano does not reformat when you *shorten* a line).
> > 
> > do you talk about appending to lines that are already longer than
> > 'textwidth' characters or that reach into the margin set by
> > 'wrapmargin'? If yes, you might want to check if
> > 
> >   :set formatoptions-=l
> > 
> > helps. Additionally there are the 'a' and 'w' flags of 'formatoptions'.
> > If you add them multiple lines that end in spaces are treated as one
> > paragraph and this paragraph is reformatted every time you make a change
> > to its contents.
> > 
> > Regards,
> > Jürgen
> > 
> > -- 
> > Sometimes I think the surest sign that intelligent life exists elsewhere
> > in the universe is that none of it has tried to contact us.     (Calvin)
> > 
> > -- 
> > You received this message from the "vim_use" maillist.
> > Do not top-post! Type your reply below the text you are replying to.
> > For more information, visit http://www.vim.org/maillist.php

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to