vimv icon indicating copy to clipboard operation
vimv copied to clipboard

Any way to rename files with a running number?

Open se7en-x230 opened this issue 3 years ago • 3 comments

Is there a way to rename files like that? Holiday-01.jpeg Holiday-02.jpeg ...

se7en-x230 avatar Mar 01 '21 00:03 se7en-x230

try :0put =range(1,100) -or check out this link- https://vim.fandom.com/wiki/Making_a_list_of_numbers

itzjustalan avatar Mar 02 '21 09:03 itzjustalan

:let i=1 | g/abc/s//='xyz_'.i/ | let i=i+1 seams to work ... not easy to remeber but works fine

se7en-x230 avatar Mar 02 '21 09:03 se7en-x230

g ctrl-a? https://vimhelp.org/change.txt.html#CTRL-A

crash5 avatar Jul 03 '21 07:07 crash5