vimv makes it easy to rename various files by letting you make the changes inside a text editor.
Run vimv from the command-line:
vimv
This will open vi with the list of files in the current directory.
Change the filenames, save and exit.
The files will be renamed when you exit vi.
Requires Python (run python -V to check).
On Unix, Linux or macOS:
- Download the script
vimv.py - Copy it to
/usr/local/bin/ - Rename it to
vimv - Make it executable (
chmod +x /usr/local/bin/vimv)
vimv has NOT been tested on Windows.
You may need to run chmod as super user:
sudo chmod +x /usr/local/bin/vimv
To use a different editor, e.g., the pico editor:
vimv -e pico
To rename ALL files in a directory, including hidden files:
vimv -a
To rename files in a different directory, e.g., in the /home directory:
vimv /home
To see the full list of options available:
vimv --help
Delete files by leaving a blank name where a filename used to be.
A log of the changes is written to ~/.vimv_history.
Don't use filenames with double quotes.
