Monday, July 22, 2013

Re: using formatoptions +a autoflow

Cool Ben

I will give this a go. It will hopefully reduce my expletive
count when editing emails :)

--
Eric Smith

Ben Fritz wrote on Fri-19-Jul 13 2:04PM
> On Thursday, July 18, 2013 3:41:35 PM UTC-5, Eric Smith wrote:
> > I like to use autoflow but wish to have it automatically switch
> >
> > off when editing structured paragraphs.
> >
> >
> >
> > For example when editing emails, I do not want autoflow to
> >
> > reformat the headers or the signature.
> >
> >
> >
> > How could I have it switch off when editing these paragraphs
> >
> > and on again with other text?
> >
>
> I think I'd approach this in one of two ways:
>
> 1. Define normal text as a text, and "structured" text as a comment (if possible). Then you can use the 'c' and 't' flags in formatoptions to control where it applies.
> 2. Create my own formatexpr function that checks on the region it's in before making any changes.
>
> --
> --
> 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 because you are subscribed to the Google Groups "vim_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

--
--
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 because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: