Vim Tips Wiki
Advertisement

To write numbers for numbered list:

move to first line of list, then

ma

(mark current position with marker 'a'),

then move to last line of list, then execute:

:'a,.g/^/exe ":s/^/".(line(".") - line("'a") + 1)."^I/"

(^I - is <Tab> symbol, for example)

Advertisement