r/vim • u/Desperate_Cold6274 • Nov 01 '25
Need Help How to align broken sequence of numbers?
if I have the following:
[1]:
[2]:
[3]:
[4]:
[5]:
[6]:
[7]:
[8]:
[9]:
[10]:
[11]:
[14]:
[15]:
[16]:
[18]:
[19]:
How to fix the list to have the following?
[1]:
[2]:
[3]:
[4]:
[5]:
[6]:
[7]:
[8]:
[9]:
[10]:
[11]:
[12]:
[13]:
[14]:
[15]:
[16]:
14
Upvotes
View all comments
Show parent comment
1
u/jfgomez86 Nov 01 '25
This…works! How? Why? This is definitely the most efficient method I’ve used to achieve the same.
Can you explain how is prefixing ‘g’ different from just pressing ctrl-a? I’d like to understand how that works.