tpope/vim-eunuch — pull request #5 by Soares (2012-10-12 18:02:31+00:00)
Title: Change :Rename to use the file's current directory by default

Let's say you're in `project/` and you're editing `src/feature/blue.c`. You make a bunch of changes and decide that it really should be named `red.c` now, so you `:Rename red.c`.

Now you've got `project/red.c` in your root project directory and nothing in `src/feature`.

This patch makes `:Rename` use the directory of the original file if no path fragment is specified.

You can still get the original behavior by doing e.g. `:Rename ./red.c` in the above example.