RSS Amplifier

Dev Log · Sep 18, 2019

Increment numbers in Vim

0
Sign in to vote or save

dev-log.me

18 September, 2019

Today I learned about a great command to increase numbers in Vim!

How to go from here:

0
0
0
0
0
0
0

To here:

1
2
3
4
5
6
7

gif increment

  1. vG to select to the bottom
  2. g<C-A> to increment each number by one

Find help about it with :h v_g_^x.

Read the original on dev-log.me

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.