Today I found a cool trick on the Vim SubReddit: how to quickly create ordered lists.
Here’s a screen-cast by rnevius:
Steps
Let’s say that you have a list:
one item
another item
it's an item
- Use
<C-v>(CTRL + V), thenIto select all lines at the start of the line and add a0.in front of each:
0. one item
0. another item
0. it's an item
- Now we can use
Vto select each line where we want to increment the number, theng <C-a>(gfollowed byCTRL+A).
Now the list looks like this
0. one item
1. another item
2. it's an item