Need help with vimv?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

thameera
366 Stars 31 Forks MIT License 47 Commits 9 Opened issues

Description

Batch-rename files using Vim

Services available

!
?

Need anything else?

Contributors list

# 91,174
Ruby
Git
C
Twitter
18 commits
# 6,501
C
Objecti...
text-se...
React
2 commits
# 86,323
nerdtre...
bash-pr...
Bash
Vim
2 commits
# 563,007
Vim
Bash
1 commit
# 560,194
Vim
Bash
1 commit
# 252,025
PHP
CSS
Project...
kanban
1 commit
# 5,970
Django
fingerp...
fingerp...
TypeScr...
1 commit
# 479,053
python3
D
Vim
Bash
1 commit
# 193,782
C
Rust
cargo-s...
vulkan
1 commit

vimv

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

Installing

  1. For the current user:
    curl https://raw.githubusercontent.com/thameera/vimv/master/vimv > ~/bin/vimv && chmod +755 ~/bin/vimv
    
  2. For the current system:
    sudo PREFIX=/usr/local make install
    

Or simply copy the

vimv
file to a location in your
$PATH
and make it executable.

Usage

  1. Go to a directory and enter
    vimv
    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
    $EDITOR
    environment variable set, vimv will use its value by default.
  • If you are inside a Git directory, vimv will use
    git mv
    (instead of
    mv
    ) to rename the files.
  • You can use
    /some/path/filename
    format to move the file elsewhere during renaming. If the path is non-existent, it will be automatically created before moving.

Screencast

alt text

Gotchas

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.