Convert bulleted/unordered lists to numbered lists

January 15, 2025 ยท View on GitHub

  1. Visually select the lines.
  2. Enter command mode & run
    :'<,'>s/*/\=line('.') - line("'<") + 1 . '.'
    
    Replace * with - if you are using markdown