Thursday, February 7, 2008

Add and Subtract

Move your cursor over a number in Vim. In normal mode, press ctrl-a to increment it's value by one. Press ctrl-x to decrement it's value. Believe it or not, this actually comes in handy pretty often.


Anonymous said...

But how do you sum a whole column of numbers?

Travis Whitton said...

A different tip, but it's possible.

Hem said...

OCT, HEX and DEC formats are supported... no luck if you are trying ctrl+a on a binary number.