Today I Learned
Search…
Convert bulleted/unordered lists to numbered lists
  1. 1.
    Visually select the lines.
  2. 2.
    Enter command mode & run
    :'<,'>s/*/\=line('.') - line("'<") + 1 . '.'
    Replace * with - if you are using markdown
Copy link
Edit on GitHub