tools - vim to increment/decrement number under cursor

in VIM, you can do increment or decrement with the two key commands: 

they are 

ctrl-a : increase

ctrl-x: decrease

  • You can increment a number with control A
  • You can decrement a number with control X
  • If the cursor is not already on a number, either of these will advance the cursor to the next number
  • This does the math for multi-column numbers!

the original post is  http://dannyman.toldme.com/2008/01/23/vim-increment-decrement-integers/ - tip: Vim can add and substract.

猜你喜欢

转载自joe-bq-wang.iteye.com/blog/1678164