by thameera

thameera / vimv

Batch-rename files using Vim

258 Stars 26 Forks Last release: Not found MIT License 28 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


vimv is a terminal-based file rename utility that lets you easily mass-rename files using Vim.


curl > ~/bin/vimv && chmod +755 ~/bin/vimv

Or simply copy the

file to a location in your
and make it executable.


  1. Go to a directory and enter
    with optionally, a list of files to rename.
  2. A Vim window will be opened with names of all files.
  3. Use Vim's text editing features to edit the names of files. For example, search and replace a particular string, or use visual selection to delete a block.
  4. Save and exit. Your files should be renamed now.

Other features

  • If you want to list only a group of files, you can pass them as an argument. eg:
    vimv *.mp4
  • If you have an
    environment variable set, vimv will use its value by default.
  • If you are inside a Git directory, vimv will use
    git mv
    (instead of
    ) to rename the files.
  • You can use
    format to move the file elsewhere during renaming. If the path is non-existent, it will be automatically created before moving.


alt text


Don't delete or swap the lines while in Vim or things will get ugly.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.