TIP: Vim can add and subtract!

I have been using Vim for years, and have any number of times (say, when dealing with DNS configuration) had to edit many lines, changing integers by a constant value, and it was always a hassle to repeatedly switch modes and type in a new number. “There must be some macro or other special mojo,” I thought, “and sometime, I will figure this out.”

Well, there is special mojo, and the figuring it out is so dead simple I kick myself for not knowing this years ago:

Vim Tip 287: Cool trick to change numbers

Yes, I rated that tip as “life changing”!

Read More

Categories: Technical

  • Sharath

    Hi Danny,

    This is one of very good feature in Vim. Thanks for giving a very useful information.