3

I've few lines (or paragraph if easier - {, }) which I would like to convert to numbered/ordered list, in example:

Item one
Item two
Item three

into:

1. Item one
2. Item two
3. Item three

I would assume that it needs to be done either by macro or some plugin. But any method would be ok.

2
  • So I've added in this case unix as I'm on OSX, as I'm not limiting to pure vim, especially on Windows. So in this case it's not duplicate. Then Unix commands are welcomed. – kenorb Feb 14 '15 at 22:49
  • The other answer covers many different sort of answers; including Vim-only and UNIX-only. Actually, the UNIX-only will also work on windows if you have msysgit or cygwin installed. Unless there's a compelling reason why none of the answers work for you, I see no reason to add another question (and thus, this is a duplicate). – Martin Tournoij Feb 14 '15 at 23:47