Vim command for incrementing numbers sequentially. my_array[1] = 0; my_array[2] = 0; my_array[3] = 0; my_array[4] = 0; my_array[5] = 0; my_array[6] = 0; my_array[7] = 0; If you want to increment numbers inside my_array 1. with cursor on the first 0 in the first line 2. blockwise select with Ctrl-V enter blockwise-visual mode and select all wanted number Vim keys are will be... 6j # or simply jjj..