Vim - incremental numbering via regular expression search and replace

前端 未结 3 1080
太阳男子
太阳男子 2020-12-11 14:13

I have this code:

array (\'id\' => 1, \'name\' => \"Murka\", \'date_of_birth\' => \"2014-10-31\", \"breed_id\" => 1),
array (\'id\' => 1, \'na         


        
3条回答
  •  余生分开走
    2020-12-11 14:20

    Another approach. go to the second line, put the cursor over the first 1, now start a visual block selection Ctrl-v, press j until the line you want increment and press g Ctrl-a

提交回复
热议问题