Renaming files *rename-files*
Say I have a directory with the following files in them (directory picked at
and I want to rename *.c *.bla. I'd do it like this: >
$ vim :r !ls *.c :%s/\(.*\).c/mv & \1.bla :w !sh :q!
You invoke the help within vim by entering the colon then typing help.
renamer.vim : Use the power of vim to rename groups of files Show a list of file names in a directory, rename then in the vim buffer using vim editing commands, then have vim rename them on disk