I am using VIM Renamer plugin to bulk rename files,
I want to replace
E008_r5_Haz_Area_Class NAT GAS.pdf
E009_r4_Haz_Area_Class.pdf
E010_r4_Haz_Area_Class MP STEAM.pdf
E011_r3_Haz_Area_Class.pdf
E012_r3_Haz_Area_Class.pdf
E013_r3_Haz_Area_Class.pdf
with
E008_NG_Hazd Area Class_R2.pdf
E009_MDEA_Hazd Area Class_R4.pdf
E010_SYNGAS _ REFRIG_Hazd Area Class_R4.pdf
E011_Reform _Hazd Area Class_R3.pdf
E012_Air Cooler_Hazd Area Class_R3.pdf
E013_Air Cooler_Hazd Area Class_R3.pdf
Process is as below,
- column mode, select complete line except ".pdf".
- column replace new names as files are in order only.
- Issue :Ren command to replace all file names.
I was manually doing it for single lines but I have more than 1000 files to rename. Appreciate any help here, I want to learn vim syntax but managing chemical engineering work and learning vim is too steep for me. Appreciate if I can have little explanation.
:substitute
or similar command to automate this. I'm not to sure what "column mode" is—do you mean visual-block mode (the mode entered by<C-v>
)?E013_r3_Haz_Area_Class.pdf
) rearranges the words in the input but also adds the wordsAir Cooler
-- where does that come from?