Hi folks,
I am using Vim successfully for composing format=flowed emails (for
mutt), i.e. I have formatoptions+=aw in place. I also use
$formatlistpat, and now I often get into the situation wherein an
abbreviation like "e.g." or "i.e." or whatever at the start of a
line makes Vim thinks it's a numbered list within a flowed
paragraph. Here's an example, and I'm using the '·' character to
highlight the trailing/leading spaces of the lines:
This is an example to show how using Vim to compose a·
format=flowed email can yield problems when abbreviations like·
e.g. are used and end up at the start of a line, because it'll·
·····make Vim think that there's a numbered list starting.
I understand why this is happening, but I'd say that it shouldn't
happen in cases where the previous line ended with a trailing space,
at least not if $formatoptions includes 'w'.
Unfortunately, I cannot seem to get $formatlistpat to recognise
context across linebreaks.
The relevant configuration I'm using is:
formatlistpat=^\v\s*(((\a|\d{,4})[]:.)}/-])+|[-\*.·→+])\s+
formatoptions=tcqawn
autoindent
Do you see any way to prevent the auto-indentation from happening in
the middle of format=flowed paragraphs?
Thanks,
--
@martinkrafft |
https://riot.im/app/#/room/#madduck:madduck.net
"i dislike arguments of any kind. they are always vulgar, and often
convincing."
-- oscar wilde
spamtraps:
madduc...@madduck.net