Numbering lines in vim
Use for numbering lines this regexp:
:%s/^/\=line(".").". "
You've had:
First item
Second item
Third item
Now, you have:
1. First item
2. Second item
3. Third item
Responsible for numbers format is characters quotes ". " (dot and space).
Written by Павел Калашников
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#