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.
在inVIM中,你可以通过简单的快捷键ctrl-a来增加整数,使用ctrl-x来减少整数。即使光标不在数字上,这些操作也能将其移到下一个数字,并进行数学运算。
1万+

被折叠的 条评论
为什么被折叠?



