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: madduck.bogus@madduck.net
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190611022336.GA7716%40fishbowl.rw.madduck.net.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment