Saturday, June 13, 2015

Re: Formatting of lists and paragraphs containing numbers with fo+=n

On 12.06.15 22:48, Marcin Szewczyk wrote:
> So probably I could resolve half of the problem by disabling the "n"
> flag when editing non-list paragraphs with numbers. But still there is a
> problem of a list item containing something matching 'formatlistpat'. I
> don't know how to solve that problem.

Marcin,

For a quick fix, there are Bill's two options at the end of this thread:

https://groups.google.com/forum/?hl=en_US#!searchin/vim_use/Re$3A$20Reformatting$20numbered$20lists$20[Was$3A$20formatlistpat$20escape$20\]|sort:relevance/vim_use/AdiDZmXsMRI/fEnNaQpvg5oJ

OK, that swaps between "set fo-=2 fo+=n" and "set fo-=n fo+=2", because
that was what I needed, but you needn't do the "fo+=2" if that's not
desired.

Erik

--
The Kyoto Protocol, drafted in 1997, aimed to reduce the world's greenhouse gas
emissions by around five per cent from 1990 levels by the end of 2012.
Instead, global greenhouse gases have risen around 58 per cent in that time.
- http://www.abc.net.au/news/2012-12-08/troubled-un-climate-talks-spill-over/4416696

--
--
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/d/optout.

No comments: