To increase a number under or nearest to the right of the cursor, go to Normal mode and type:
在一般模式下可以这样来递增光标下或最靠近光标右侧的数字:
Ctrl-A
To decrease, type:
递减可以使用:
Ctrl-X
Using this in a macro simplifies generating number sequences a lot.
使用这样的宏可以简化对数字序列的操作。
Technorati Tags: VI, EDITOR
Comments