(Neo)vim Macro to Create Numbered Lists
I usually encounter this when saving notes about list of items that are not numbered but are generally better off being itemized. Since this is such a common scenario I did find a couple of posts1 2 that explained the method but they had edge cases which were not handled properly.
Say you want to note down a shopping list and then decide to number it later,
Soy milk Carrots Tomatoes Pasta Start off by numbering the first line and then move the cursor to the second line.