Vmv is a project mainly written in Vim Script, it's free.
group rename files from the command prompt with vim
This is a mirror of http://www.vim.org/scripts/script.php?script_id=2285
vmv - the vim version of the mv command. This script is in intent exactly the same as renamer.vim, rename a mass of files all at once using the full power of vim's editing capabilities. Usage is much simpler to remember if you haven't used it in months, and the script itself is much shorter. Great for anybody who just ripped a CD to "track 01.mp3" through "track 12.mp3", or just inherited a collection of mp3's without proper case and with underscores instead of spaces.
Also notable is that this will deal with files that start with a - or -- just fine.
Usage is simple:
Here's a few examples:
localhost~$vmv
localhost~$find | grep -i '.mp3$' | vmv
localhost~$vmv list.txt
There are two "bugs" that I know of:
There isn't really much error checking. If the original file name doesn't exist, that line will fail with a message, but it will merrily proceed with the rest of the file. If the destination file name already exists it will overwrite without warning. There is no lifeguard, swim at your own risk. I was going to write fixes for those, and also make it check if the file exists when it's first loaded for editing. I changed my mind because, after all,
If you enjoy this script, and want it improved, your comments would be helpful.