A blog dedicated to text editing and general exploration of computing knowledge
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.
3 comments:
But how do you sum a whole column of numbers?
A different tip, but it's possible.
OCT, HEX and DEC formats are supported... no luck if you are trying ctrl+a on a binary number.
Post a Comment