Often times it seems I have a list of items, and I need to add numbers in front of them. For example:
Item one Item two Item three
Which shoul
Select your lines in visual mode with: V, then type:
V
:'<,'>s/^\s*\zs/\=(line('.') - line("'<")+1).'. '
Which is easy to put in a command:
command! -nargs=0 -range=% Number ,s/^\s*\zs/\=(line('.') - +1).'. '